6 # description: reverse-proxy and load-balancer
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/pound ] && . /etc/sysconfig/pound
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network ]; then
21 # nls "ERROR: Networking is down. %s can't be run." pound
22 msg_network_down pound
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/pound ]; then
35 daemon pound -f /etc/pound/pound.cfg
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pound
39 msg_Already_Running pound
45 if [ -f /var/lock/subsys/pound ]; then
48 rm -f /var/lock/subsys/pound > /dev/null 2>&1
64 msg_Usage "$0 {start|stop|restart|status}"