diff options
Diffstat (limited to 'extra/vsftpd/vsftpd.initd')
-rw-r--r-- | extra/vsftpd/vsftpd.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/vsftpd/vsftpd.initd b/extra/vsftpd/vsftpd.initd new file mode 100644 index 000000000..9e8b124b0 --- /dev/null +++ b/extra/vsftpd/vsftpd.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +NAME=vsftpd +DAEMON=/usr/sbin/$NAME + +depend() { + need net +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile /var/run/${NAME}.pid \ + --exec ${DAEMON} -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --quiet \ + --exec ${DAEMON} \ + --pidfile /var/run/${NAME}.pid \ + eend $? +} + |