This is the main startup script, named deathmatch-start: #!/bin/sh cd /usr/local/games/q3test date >> deathmatch.log #The bit between the if and fi is used because of an weird anomaly I #experienced sometimes where additional instances of the server would spawn. #This prevents that behavior but it isn't at all necessary otherwise. if ( ps awwwx | grep 'quake3' | grep 27960 > /dev/null ) then echo "Deathmatch already loaded!" exit 22 fi /usr/local/games/q3test/linuxquake3 +set dedicated 2 +set net_port 27960 +map q3test1 +set rconpassword "password" +exec deathmatch.cfg +exec mapcycle.cfg < /dev/null > /dev/null & echo done ----------------------- This is deathmatch.cfg and it's in the demoq3 dir: set fraglimit 30 set timelimit 20 set sv_maxclients 12 set g_gametype 0 set sv_hostname "XMission Orgy of Death" set g_motd "Welcome from XMission & 423" set g_weaponrespawn 3 ----------------------- This is mapcycle.cfg and it's also in the demoq3 dir: set d1 "map q3test1 ; set nextmap vstr d2" set d2 "map q3tourney ; set nextmap vstr d1" vstr d1 ----------------------- This is my deathmatch-kill script, that I use to kill the server: ps auxwww | grep deathmatch | grep -v grep | awk '{print $2}' | xargs kill ----------------------- This is my reboot-servers script that I run every morning from a cron. It starts both the servers I run on this particular machine: #!/bin/sh rm -f /usr/local/games/q3test/core mv /root/.q3a/demoq3/qconsole.log /usr/local/games/q3test/demoq3/logs/`date +%d`.qconsole.log mv /root/.q3a/demoq3/games.log /usr/local/games/q3test/demoq3/logs/`date +%d`.games.log cd /usr/local/games/q3test echo killing deathmatch server /usr/local/games/q3test/deathmatch-kill echo sleeping 5 sleep 5 echo killing tourney server /usr/local/games/q3test/tourney-kill echo sleeping 5 sleep 5 echo starting deathmatch server /usr/local/games/q3test/deathmatch-start echo sleeping 10 sleep 10 echo starting tourney server /usr/local/games/q3test/tourney-start echo done ---------------------------- This is what I have in crontab to run my reboot-servers script every morning: * 6 * * * /usr/local/games/q3test/reboot-servers