diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-12 12:26:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-12 12:27:59 +0000 |
commit | dca0ad5e0ff29400f0752010544dcf758b4bba4f (patch) | |
tree | 0a3ee62e38abeeaa12885253fec2e34d8c760563 /unmaintained/wzdftpd-svn/wzdftpd-svn.initd | |
parent | 440b268ffe8bdc281286fea2d618820c08630f45 (diff) | |
download | aports-dca0ad5e0ff29400f0752010544dcf758b4bba4f.tar.bz2 aports-dca0ad5e0ff29400f0752010544dcf758b4bba4f.tar.xz |
rename unstable to unmaintained
stuff thats unmaintained could go here
Diffstat (limited to 'unmaintained/wzdftpd-svn/wzdftpd-svn.initd')
-rw-r--r-- | unmaintained/wzdftpd-svn/wzdftpd-svn.initd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/unmaintained/wzdftpd-svn/wzdftpd-svn.initd b/unmaintained/wzdftpd-svn/wzdftpd-svn.initd new file mode 100644 index 0000000000..25f4da6f47 --- /dev/null +++ b/unmaintained/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 $? +} + |