#!/bin/sh SCREEN=/usr/bin/screen Q2DIR=/home/quake/q2 SUDO=/usr/bin/sudo NAME=opentdm RENICE=/usr/bin/renice # paths are relative, need to cd into the quake folder cd /home/quake/q2 # run the server in a screen so you can reattach to the console #$SCREEN -c opentdm/screenrc.27910 -A -m -S $NAME \ $SCREEN -c opentdm/screenrc.27910 -L -A -m -d -S $NAME \ $SUDO -u quake \ $Q2DIR/q2proded.x64 +set game opentdm +exec server.cfg +map q2dm1 & # let quake startup before setting priority #/bin/sleep 5 # repriortize the process, -20 is the highest priority possible #PID=`/bin/ps -f -U quake | /bin/grep q2proded | /bin/awk '{printf("%s",$2);}'` #$RENICE -n -20 -p $PID > /dev/null