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 Fri, 22 Mar 2002 21:38:35 -0600
14 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
17 PIDFILE
=/var
/run
/$NAME.pid
18 DESC
="LAN Information Server"
20 test -f $DAEMON ||
exit 0
26 echo -n "Starting $DESC: "
27 start-stop-daemon
--start --quiet --pidfile $PIDFILE --exec $DAEMON \
29 echo $
(pidof lisa
) > $PIDFILE
33 echo -n "Stopping $DESC: "
34 start-stop-daemon
--stop --quiet --oknodo --pidfile $PIDFILE \
40 echo "Reloading $DESC configuration files."
41 start-stop-daemon
--stop --quiet --signal 1 --pidfile $PIDFILE \
45 echo -n "Restarting $DESC: "
46 start-stop-daemon
--stop --quiet --oknodo --pidfile $PIDFILE \
50 start-stop-daemon
--start --quiet --pidfile $PIDFILE --exec $DAEMON \
52 echo $
(pidof lisa
) > $PIDFILE
57 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2