02-20-2010, 03:39 AM
If you want to run it for more than instance, check for the screentab instead of the process
Code:
if [[ `screen -ls |grep screenname` ]]
then
echo "running"
else
cd /home/gameserver/servers/xxx/halflife2
/usr/bin/screen -A -m -d -S screenname ./srcds_run -game cstrike -ip xxx -port 27015 -tickrate 100 +fps_max 0 +map de_piranesi -maxplayers 35
fi