]> git.pld-linux.org Git - packages/whoson.git/commitdiff
- init script for whoson.
authorkloczek <kloczek@pld-linux.org>
Tue, 31 Aug 1999 12:47:08 +0000 (12:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    whoson.init -> 1.1

whoson.init [new file with mode: 0644]

diff --git a/whoson.init b/whoson.init
new file mode 100644 (file)
index 0000000..bc58752
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/bash
+#
+# whosond      Start/Stop whosond server
+#
+# chkconfig:   345 40 65
+# description: whosond - implementation of WHOSON protocol
+#
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Get config.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+if [ "${NETWORKING}" == "no" ]
+then
+       exit 0
+fi
+
+[ -f %{_sbindir}/whosond ] || exit 0
+
+# See how we were called.
+case "$1" in
+  start)
+       show "Starting whosond: "
+       daemon whosond
+       touch /var/lock/subsys/whosond
+       ;;
+  stop)
+       show "Stopping whosond services: "
+       killproc whosond
+       rm -f /var/lock/subsys/whosond
+       ;;
+  status)
+       status whosond
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       echo "Usage:$0 {start|stop|status|restart|reload}"
+       exit 1
+esac
+
+exit 0
+
This page took 0.143668 seconds and 4 git commands to generate.