> Attached is an init script I wrote (for SuSE
Linux) to start up multiple
Looks like it got stripped...Here it is in text:
**************************************************
#!/bin/sh
#
# Pound Load Balancer
#
### BEGIN INIT INFO
# Provides: pound
# Required-Start: $remote_fs $syslog $named
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start Pound Load Balance/Reverse
Proxy
### END INIT INFO
POUND_CFG_DIR="/usr/local/etc/pound.d"
POUND_CTL_DIR="/tmp"
POUND_BIN="/usr/local/sbin/pound"
POUNDCTL_BIN="/usr/local/sbin/poundctl"
# First reset status of this service
. /etc/rc.status
rc_reset
case "$1" in
start)
echo "Starting Pound"
rm -f $POUND_CTL_DIR/*.ctl
for i in $POUND_CFG_DIR/*.conf;
do
echo $i
$POUND_BIN -v -f $i
rc_status -v
done
;;
stop)
echo "Stopping POUND"
pkill -f $POUND_BIN
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
;;
conf*)
echo "Performing
configuration check for files in $POUND_CFG_DIR"
for i in $POUND_CFG_DIR/*.conf;
do
echo $i
$POUND_BIN -c -f $i
rc_status -v
done
;;
status)
echo "Pound Status:"
for i in $POUND_CTL_DIR/*.ctl;
do
echo "$i:"
$POUNDCTL_BIN -c $i
rc_status -v
done
;;
*)
echo "Usage: $0 <command>"
echo
echo "Where <command>
is one of:"
echo " start
- start a Pound instance
for each .conf file in $POUND_CFG_DIR"
echo " stop
- stop all Pound instances"
echo " restart
- stop all Pound instances and
start them again"
echo " status
- check the status of all Pound
instances"
echo " configtest
- do a configuration syntax test on all configuration
files in $POUND_CFG_DIR"
exit 1
;;