PDA

View Full Version : Linux startzones script


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

kathgar
09-11-2002, 06:44 AM
#!/bin/sh
while 1
do ./zone <zonename or .> bha blha blha
done

couple of those and one that just runs all of those scripts, nice keepalive

Trumpcard
09-11-2002, 07:34 AM
How about...

while 1
fork();

My favorite... That asshole Hogie ( :-) ) almost ftped that to me once as a zoneserver....