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
15 DAEMON=/usr/sbin/zephyrd
19 test -f $DAEMON || exit 0
25 if test ! -f /etc/zephyr/srvtab
27 echo 'You need to get a srvtab before the kerberized zephyr server will function'
28 echo 'correctly. Get a srvtab for zephyr/zephyr and put it in
32 echo -n "Starting $DESC: "
33 start-stop-daemon --start --quiet --exec $DAEMON
37 echo -n "Stopping $DESC: "
38 start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
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 --exec $DAEMON
50 start-stop-daemon --start --quiet --pidfile \
51 /var/run/$NAME.pid --exec $DAEMON -- $zhm_args
55 echo -n "Telling $NAME to reload..."
56 start-stop-daemon --stop --signal HUP --exec $DAEMON
61 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
62 # echo "Usage: $N {start|stop|restart|force-reload}" >&2