3 # perlbal Perlbal - Reverse-proxy load balancer and webserver
7 # description: Perlbal - Reverse-proxy load balancer and webserver
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
19 [ -f /etc/sysconfig/perlbal ] && . /etc/sysconfig/perlbal
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 perlbal
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/perlbal ]; then
35 daemon perlbal $PERLBAL_OPTS
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/perlbal
39 msg_already_running perlbal
44 if [ -f /var/lock/subsys/perlbal ]; then
48 rm -f /var/lock/subsys/perlbal
50 msg_not_running perlbal
55 if [ -f /var/lock/subsys/perlbal ]; then
59 msg_not_running perlbal
65 if [ -f /var/lock/subsys/perlbal ]; then
70 msg_not_running perlbal
76 # See how we were called.
99 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"