6 # description: reverse-proxy and load-balancer
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
15 # List of instances to start.
16 POUND_INSTANCES="pound"
19 [ -f /etc/sysconfig/pound ] && . /etc/sysconfig/pound
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 pound
32 for instance in $POUND_INSTANCES; do
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/pound-$instance ]; then
35 msg_starting "Pound ($instance)"
36 daemon pound -f /etc/pound/$instance.cfg -p /var/run/pound/$instance.pid
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pound-$instance
40 msg_already_running "Pound ($instance)"
47 for instance in $POUND_INSTANCES; do
48 if [ -f /var/lock/subsys/pound-$instance ]; then
49 msg_stopping "Pound ($instance)"
50 killproc --pidfile pound/$instance.pid pound
51 rm -f /var/lock/subsys/pound-$instance > /dev/null 2>&1
53 msg_not_running "Pound ($instance)"
59 # See how we were called.
76 msg_usage "$0 {start|stop|restart|force-reload|status}"