Restart GameServers script
#1

Ok guys.. this little script will help you if you're not a fan of ps and kill commands...

go to root EP2 files directory and follow these simple steps:

 

gipi@sarasystems-net #: touch rgs

 

rgs

#!/bin/bash
while ( : ) do
PID=`ps -edf|grep GameServer_d|awk '{print $2}'`
echo "Finding GameServers..." >&2
sleep 2
echo "$PID" >&2
sleep 2
echo "Restarting Done!!" >&2
sleep 1
kill -9 $PID
exit
done

 

Now you can run ./rgs to restart all your gameserver processes.

I know, this is a very donkey script, so don't hate me

 

Regards



Messages In This Thread
[No subject] - by LikeToMove - 01-05-2013, 01:25 AM
[No subject] - by Gambit - 01-06-2013, 10:22 PM
[No subject] - by Creep - 01-09-2013, 02:43 PM
[No subject] - by LikeToMove - 01-09-2013, 04:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)