diff options
author | Carlo Lanmdeter <clandmeter@gmail> | 2009-03-03 14:18:21 +0000 |
---|---|---|
committer | Carlo Lanmdeter <clandmeter@gmail> | 2009-03-03 14:18:21 +0000 |
commit | 77a5257b2f29b2ab371b6c38190ec1a85485deba (patch) | |
tree | 1a357e5376f6d8327c56ef2c6ed4b05a962b39b4 /extra/vsftpd/vsftpd.initd | |
parent | 79a2c759f11ffc72a3a2ea1be8e25fca41c4d742 (diff) | |
download | aports-77a5257b2f29b2ab371b6c38190ec1a85485deba.tar.bz2 aports-77a5257b2f29b2ab371b6c38190ec1a85485deba.tar.xz |
extra/vsftpd: new aport
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 0000000000..9e8b124b00 --- /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 $? +} + |