EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   Linux startzones script (https://www.eqemulator.org/forums/showthread.php?t=2992)

solar 09-10-2002 12:47 PM

Linux startzones script
 
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:

Code:

#!/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

Code:

#!/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....


All times are GMT -4. The time now is 06:17 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.