summaryrefslogtreecommitdiff
path: root/debian/zephyr-clients.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/zephyr-clients.init')
-rw-r--r--debian/zephyr-clients.init69
1 files changed, 0 insertions, 69 deletions
diff --git a/debian/zephyr-clients.init b/debian/zephyr-clients.init
deleted file mode 100644
index 7d3977b..0000000
--- a/debian/zephyr-clients.init
+++ /dev/null
@@ -1,69 +0,0 @@
-#! /bin/sh
-#
-# skeleton example file to build /etc/init.d/ scripts.
-# This file should be used to construct scripts for /etc/init.d.
-#
-# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
-# Modified for Debian GNU/Linux
-# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
-#
-# Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
-#
-# This file was automatically customized by dh-make on Mon, 4 Dec 2000 05:28:22 -0500
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/sbin/zhm
-NAME=zhm
-DESC="zephyr host manager"
-
-test -f $DAEMON || exit 0
-
-set -e
-
-case "$1" in
- start)
- # note that the following will need revisting when we get hesiod support
- if test ! -f /etc/zephyr/zhm.conf
- then
- cat <<EOF
-The zephyr-clients package for whatever reason does not have any zephyr
-servers configured. Please edit the file /etc/zephyr/zhm.conf and
-add the names of your zephyr servers, seperated by spaces, to the
-zhm_args variable.
-EOF
- exit 0
- fi
- echo -n "Starting $DESC: "
- start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON -- $zhm_args
- echo "$NAME."
- ;;
- stop)
- echo -n "Stopping $DESC: "
- start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON
- echo "$NAME."
- ;;
- restart|force-reload)
- #
- # If the "reload" option is implemented, move the "force-reload"
- # option to the "reload" entry above. If not, "force-reload" is
- # just the same as "restart".
- #
- echo -n "Restarting $DESC: "
- start-stop-daemon --oknodo --stop --quiet --pidfile \
- /var/run/$NAME.pid --exec $DAEMON
- sleep 1
- start-stop-daemon --start --quiet --pidfile \
- /var/run/$NAME.pid --exec $DAEMON -- $zhm_args
- echo "$NAME."
- ;;
- *)
- N=/etc/init.d/$NAME
- # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $N {start|stop|restart|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0