6 # description: Boa is a World Wide Web server. It is used to serve \
9 # config: /etc/boa.conf
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/boa ] && . /etc/sysconfig/boa
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down "Boa httpd"
32 # See how we were called.
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/boa ]; then
37 msg_starting "Boa httpd"
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/boa
42 msg_already_running "Boa httpd"
47 if [ -f /var/lock/subsys/boa ]; then
48 msg_stopping "Boa httpd"
50 rm -f /var/lock/subsys/boa >/dev/null 2>&1
52 msg_not_running "Boa httpd"
61 if [ -f /var/lock/subsys/boa ]; then
62 msg_reloading "Boa httpd"
66 msg_not_running "Boa httpd" >&2
75 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"