diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-16 11:16:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-16 11:16:38 +0000 |
commit | 644950cc659ff47d780ff29d66183876e83cda14 (patch) | |
tree | 51756e94978e79142a751aab8a62c0d5cccbae91 /testing/wzdftpd-svn/wzdftpd-svn.initd | |
parent | 8ea4aca9ab4f6f1ccbd9ca47e141cf6d8d5b2c62 (diff) | |
download | aports-644950cc659ff47d780ff29d66183876e83cda14.tar.bz2 aports-644950cc659ff47d780ff29d66183876e83cda14.tar.xz |
testing/wzftpd-svn: moved from testing/wzftpd
make dir name correspond to pkgname
Diffstat (limited to 'testing/wzdftpd-svn/wzdftpd-svn.initd')
-rw-r--r-- | testing/wzdftpd-svn/wzdftpd-svn.initd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/wzdftpd-svn/wzdftpd-svn.initd b/testing/wzdftpd-svn/wzdftpd-svn.initd new file mode 100644 index 0000000000..25f4da6f47 --- /dev/null +++ b/testing/wzdftpd-svn/wzdftpd-svn.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript + +depend() { + need net + after firewall + use dns +} + +checkconfig() { + if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then + eerror "No /etc/wzdftpd/wzd.cnf file exists!" + return 1 + fi + if [ ! -d /var/run/wzdftpd ] ; then + install -dD -o ftp -g ftp /var/run/wzdftpd + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting wzdftpd" + /usr/sbin/wzdftpd >/dev/null 2>&1 & + eend $? +} + +stop () { + ebegin "Stopping wzdftpd" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20 + eend $? +} + |