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 Thu, 12 Apr 2001 15:49:17 -0700
14 PATH=/sbin:/bin:/usr/sbin:/usr/bin
15 DAEMON=/usr/sbin/freeside
19 test -f $DAEMON || exit 0
25 echo -n "Starting $DESC: "
26 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
31 echo -n "Stopping $DESC: "
32 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
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: "
55 start-stop-daemon --stop --quiet --pidfile \
56 /var/run/$NAME.pid --exec $DAEMON
58 start-stop-daemon --start --quiet --pidfile \
59 /var/run/$NAME.pid --exec $DAEMON
64 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
65 echo "Usage: $N {start|stop|restart|force-reload}" >&2