summaryrefslogtreecommitdiffstats
path: root/testing/wzdftpd/wzdftpd-svn.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/wzdftpd/wzdftpd-svn.initd')
-rw-r--r--testing/wzdftpd/wzdftpd-svn.initd28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/wzdftpd/wzdftpd-svn.initd b/testing/wzdftpd/wzdftpd-svn.initd
new file mode 100644
index 00000000..4f58d5b3
--- /dev/null
+++ b/testing/wzdftpd/wzdftpd-svn.initd
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use dns
+}
+
+checkconfig() {
+ if [ ! -f /etc/wzdftpd/wzd.cfg ] ; then
+ eerror "No /etc/wzdftpd/wzd.cnf file exists!"
+ return 1
+ fi
+}
+
+start() {
+ 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 $?
+}
+