3 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
4 # Modified for Debian GNU/Linux
5 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
6 # Modified for boa by Bill Allombert <ballombe@debian.org>.
8 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
12 LOGDIR="/var/log/$NAME"
14 test -x $DAEMON || exit 0
20 echo -n "Starting $DESC: $NAME"
21 if [ ! -d $LOGDIR ]; then
24 start-stop-daemon --start --quiet --exec $DAEMON
28 echo -n "Stopping $DESC: $NAME"
29 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
33 echo -n "Restarting $DESC: $NAME"
34 start-stop-daemon --stop --signal HUP --quiet --oknodo --exec $DAEMON
39 # If the daemon can reload its config files on the fly
40 # for example by sending it SIGHUP, do it here.
42 # If the daemon responds to changes in its config file
43 # directly anyway, make this a do-nothing entry.
45 echo -n "Reloading $DESC configuration..."
46 start-stop-daemon --stop --signal 1 --quiet --oknodo --exec $DAEMON
51 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
52 echo "Usage: $N {start|stop|restart|reload}" >&2