solar
09-10-2002, 12:47 PM
Well, there isn't a bootzones script in the source like there is in the win32 binary release, so I thought I'd post this quick one i threw together:
#!/bin/bash
ZONES=5
PORT=7995
WORLDIP=192.75.207.65
MYIP=192.75.207.65
for (( ; ZONES-- > 0 ; PORT++ ));
do
echo "starting zone on port $PORT"
./zone . $MYIP $PORT $WORLDIP >> zonelog.$PORT 2>&1 &
To use it, put it in the directory with your binaries and config files, edit the values for the IPs and the number of zones you want to start, and run it. Good way to shut em down is with 'killall zone' if you have that util.
-solar
#!/bin/bash
ZONES=5
PORT=7995
WORLDIP=192.75.207.65
MYIP=192.75.207.65
for (( ; ZONES-- > 0 ; PORT++ ));
do
echo "starting zone on port $PORT"
./zone . $MYIP $PORT $WORLDIP >> zonelog.$PORT 2>&1 &
To use it, put it in the directory with your binaries and config files, edit the values for the IPs and the number of zones you want to start, and run it. Good way to shut em down is with 'killall zone' if you have that util.
-solar