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 Wed, 8 Dec 1999 11:54:13 +1100
14 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
15 KCM_DAEMON
="/usr/sbin/kcm"
17 KCM_DESC
="Heimdal KCM"
20 test -f $KCM_DAEMON ||
exit 0
26 echo -n "Starting $KCM_DESC: "
27 start-stop-daemon
--start --quiet \
28 --pidfile /var
/run
/$KCM_NAME.pid \
29 --exec $KCM_DAEMON -- $KCM_PARAMS
33 echo -n "Stopping $KCM_DESC: "
34 start-stop-daemon
--stop --oknodo --quiet \
35 --pidfile /var
/run
/$KCM_NAME.pid \
36 --exec $KCM_DAEMON -- $KCM_PARAMS
41 # If the daemon can reload its config files on the fly
42 # for example by sending it SIGHUP, do it here.
44 # If the daemon responds to changes in its config file
45 # directly anyway, make this a do-nothing entry.
47 # echo "Reloading $DESC configuration files."
48 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
49 # /var/run/$NAME.pid --exec $DAEMON
53 # If the "reload" option is implemented, move the "force-reload"
54 # option to the "reload" entry above. If not, "force-reload" is
55 # just the same as "restart".
57 /etc
/init.d
/heimdal-kcm stop
59 /etc
/init.d
/heimdal-kcm start
63 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
64 echo "Usage: $N {start|stop|restart|force-reload}" >&2