3 # skeleton example file to build /etc/init.d/ scripts.
4 # This file should be used to construct scripts for /etc/init.d.
6 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
7 # Modified for Debian GNU/Linux
8 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
10 # Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
12 # This file was automatically customized by dh-make on Mon, 4 Dec 2000 05:28:22 -0500
14 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
17 DESC="zephyr host manager"
19 test -f $DAEMON || exit 0
23 if test -f /etc/default/zephyr-clients
25 . /etc/default/zephyr-clients
30 # note that the following will need revisting when we get hesiod support
31 if test -z "$zhm_args"
34 The zephyr-clients package for whatever reason does not have any zephyr
35 servers configured. Please edit the file /etc/default/zephyr-clients and
36 add the names of your zephyr servers, seperated by spaces, to the
41 echo -n "Starting $DESC: "
42 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
43 --exec $DAEMON -- $zhm_args
47 echo -n "Stopping $DESC: "
48 start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
54 # If the "reload" option is implemented, move the "force-reload"
55 # option to the "reload" entry above. If not, "force-reload" is
56 # just the same as "restart".
58 echo -n "Restarting $DESC: "
59 start-stop-daemon --oknodo --stop --quiet --pidfile \
60 /var/run/$NAME.pid --exec $DAEMON
62 start-stop-daemon --start --quiet --pidfile \
63 /var/run/$NAME.pid --exec $DAEMON -- $zhm_args
68 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
69 echo "Usage: $N {start|stop|restart|force-reload}" >&2