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, 13 Nov 2002 00:21:10 +0100
14 PATH=/sbin:/bin:/usr/sbin:/usr/bin
15 DAEMON=/usr/sbin/ledstats
19 test -f $DAEMON || exit 0
25 echo -n "Starting $DESC: $NAME"
26 start-stop-daemon --start --quiet \
31 echo -n "Stopping $DESC: $NAME"
32 start-stop-daemon --oknodo --stop --quiet \
38 # If the daemon can reload its config files on the fly
39 # for example by sending it SIGHUP, do it here.
41 # If the daemon responds to changes in its config file
42 # directly anyway, make this a do-nothing entry.
44 # echo "Reloading $DESC configuration files."
45 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
46 # /var/run/$NAME.pid --exec $DAEMON
50 # If the "reload" option is implemented, move the "force-reload"
51 # option to the "reload" entry above. If not, "force-reload" is
52 # just the same as "restart".
54 echo -n "Restarting $DESC: $NAME"
55 start-stop-daemon --stop --quiet --exec $DAEMON
57 start-stop-daemon --start --quiet--exec $DAEMON
62 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
63 echo "Usage: $N {start|stop|restart|force-reload}" >&2