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-client
25 . /etc/default/zephyr-client
30 echo -n "Starting $DESC: "
31 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
32 --exec $DAEMON -- $zhm_args
36 echo -n "Stopping $DESC: "
37 start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
43 # If the "reload" option is implemented, move the "force-reload"
44 # option to the "reload" entry above. If not, "force-reload" is
45 # just the same as "restart".
47 echo -n "Restarting $DESC: "
48 start-stop-daemon --oknodo --stop --quiet --pidfile \
49 /var/run/$NAME.pid --exec $DAEMON
51 start-stop-daemon --start --quiet --pidfile \
52 /var/run/$NAME.pid --exec $DAEMON -- $zhm_args
57 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
58 echo "Usage: $N {start|stop|restart|force-reload}" >&2