1 #!/bin/sh /etc/rc.common
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>.
7 # Modified for OpenWrt by Steven Barth <steven@midlink.org>.
11 # Required-Start: $local_fs $remote_fs $network
12 # Required-Stop: $local_fs $remote_fs $network
13 # Default-Start: 2 3 4 5
15 # Short-Description: Boa: lightweight and high performance web server
18 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
24 test -x $DAEMON ||
exit 0
29 echo -n "Starting $DESC: $NAME"
30 start-stop-daemon
-S -q -x $DAEMON
35 echo -n "Stopping $DESC: $NAME"
36 start-stop-daemon
-K -q -x $DAEMON
41 echo -n "Restarting $DESC: $NAME... "
42 start-stop-daemon
-K -s HUP
-q -x $DAEMON
48 # If the daemon can reload its config files on the fly
49 # for example by sending it SIGHUP, do it here.
51 # If the daemon responds to changes in its config file
52 # directly anyway, make this a do-nothing entry.
54 echo -n "Reloading $DESC configuration... "
55 start-stop-daemon
-K -s 1 -q -x $DAEMON