Ubuntu's crontab supports the @reboot flag, so you can use crontab as your server's user to start it every time the machine boots.

I actually use this along with nemrun.

On 2/10/2012 3:11 PM, Brian wrote:
Hi,

I recently installed SRCDS on my server. I followed this guide: http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

However, when I use his method of running srcds as a service in /etc/init.d/, my server starts two instances... one on 20175 and subsequently another on 27016, in separate screen sessions.

I thought it might be this section, which seems to repeat itself:

su $SRCDS_USER -l -c "screen -d -m -S $NAME $DAEMON $PARAMS"
   screen -d -m -S $NAME $DAEMON $PARAMS


But removing the second line ends up making the server not start at all..

Advice appreciated.

Brian



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds

Reply via email to