Quote:
Originally Posted by Arex
Hi, i was thinking use a script for run server, but i have any doubts... if u use
#!/bin/sh
./world &
./zone &
./zone &
./zone &
./zone &
I get all things on same terminal, how can i get each zone in one independent terminal? I also would like to know how many zones are u running for a stable server with 10 players online?
Thank you in advance!
|
The following is what I remember, but since my Linux machine had a HDD failure, and I havent got another one up yet I can't check it. In particular, I'm not sure of the test off the top of my head.
Try this:
#!/bin/sh
#change this to where ever your server binaries are
GAMEDIR=/eqemu/server/bin
#Check world isnt already running.
# grep returns 1 of world not found, so ! $? should be zero
ps aux | grep world >> /dev/null
if [ ! $? ] ; then
cd $GAMEDIR
xterm -e ./world &
xterm -e ./zone &
xterm -e ./zone &
xterm -e ./zone &
xterm -e ./zone &
fi