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 /etc/zephyr/srvtab.'
31 echo -n "Starting $DESC: "
32 start-stop-daemon --start --quiet --exec $DAEMON
36 echo -n "Stopping $DESC: "
37 start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
42 # If the "reload" option is implemented, move the "force-reload"
43 # option to the "reload" entry above. If not, "force-reload" is
44 # just the same as "restart".
46 echo -n "Restarting $DESC: "
47 start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
49 start-stop-daemon --start --quiet --pidfile \
50 /var/run/$NAME.pid --exec $DAEMON -- $zhm_args
54 echo -n "Telling $NAME to reload..."
55 start-stop-daemon --stop --signal HUP --exec $DAEMON
60 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
61 # echo "Usage: $N {start|stop|restart|force-reload}" >&2