6 # description: Boa is a World Wide Web server. It is used to serve \
9 # config: /etc/httpd/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_no "${NETWORKING}"; then
23 msg_Network_Down "Boa httpd"
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/boa ]; then
33 msg_starting "Boa httpd"
36 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/boa
38 msg_Already_Running "Boa httpd"
44 if [ -f /var/lock/subsys/boa ]; then
45 msg_stopping "Boa httpd"
47 rm -f /var/lock/subsys/boa >/dev/null 2>&1
49 msg_Not_Running "Boa httpd"
58 if [ -f /var/lock/subsys/boa ]; then
66 msg_Not_Running "Boa httpd"
79 msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"