diff options
author | Carlo Lanmdeter <clandmeter@gmail> | 2009-03-05 14:32:30 +0000 |
---|---|---|
committer | Carlo Lanmdeter <clandmeter@gmail> | 2009-03-05 14:32:30 +0000 |
commit | 1c07d600dd472a44f2d1d40659da99de882fe95a (patch) | |
tree | a5d4c85e7a853e9c8c03caeb7b4ddf69bce1101a /testing/wzdftpd | |
parent | f975b0a274a06c307840958bac002ccc0a311d3b (diff) | |
download | aports-1c07d600dd472a44f2d1d40659da99de882fe95a.tar.bz2 aports-1c07d600dd472a44f2d1d40659da99de882fe95a.tar.xz |
testing/wzdftpd: cleaned up initd file
Diffstat (limited to 'testing/wzdftpd')
-rw-r--r-- | testing/wzdftpd/wzdftpd-svn.initd | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/testing/wzdftpd/wzdftpd-svn.initd b/testing/wzdftpd/wzdftpd-svn.initd index 4f58d5b3f1..4dc8d5098e 100644 --- a/testing/wzdftpd/wzdftpd-svn.initd +++ b/testing/wzdftpd/wzdftpd-svn.initd @@ -1,28 +1,31 @@ #!/sbin/runscript depend() { - need net - use dns + need net + use dns } checkconfig() { - if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then - eerror "No /etc/wzdftpd/wzd.cnf file exists!" - return 1 - fi + 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 $? + checkconfig || return 1 + ebegin "Starting wzdftpd" + /usr/sbin/wzdftpd >/dev/null 2>&1 & + eend $? } stop () { - ebegin "Stopping mysqld" - start-stop-daemon --stop --quiet \ - --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20 - eend $? + ebegin "Stopping wzdftpd" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/wzdftpd/wzdftpd.pid --retry 20 + eend $? } |