#!/bin/sh /etc/rc.common | |
# Copyright (C) 2006-2011 OpenWrt.org | |
START=50 | |
USE_PROCD=1 | |
PROG=/usr/sbin/vsftpd | |
start_service() { | |
mkdir -m 0755 -p /var/run/vsftpd | |
mkdir -m 0755 -p /media/ftp | |
procd_open_instance | |
procd_set_param command "$PROG" | |
procd_set_param respawn | |
procd_set_param pidfile /var/run/vsftpd.pid | |
procd_set_param term_timeout 5 | |
procd_set_param kill_timeout 2 | |
procd_close_instance | |
} | |
stop_service() { | |
rm -f /var/run/vsftpd.pid | |
} |