From 6833f57b55e763d2e3fdac70daf15d73091e97f3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 16 May 2010 12:39:02 +0000 Subject: unstable/wzdftpd-svn: moved from testing doesnt build --- unstable/wzdftpd-svn/wzdftpd-svn.initd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 unstable/wzdftpd-svn/wzdftpd-svn.initd (limited to 'unstable/wzdftpd-svn/wzdftpd-svn.initd') diff --git a/unstable/wzdftpd-svn/wzdftpd-svn.initd b/unstable/wzdftpd-svn/wzdftpd-svn.initd new file mode 100644 index 000000000..25f4da6f4 --- /dev/null +++ b/unstable/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 $? +} + -- cgit v1.2.3