Hi
On 1 of the servers I have a gameserver running. This gameserver needs to be updated almost every day.
This can go automatically when starting up.
The command line is
/opt/gameserver/orangebox ; ./srcds_run -game tf -ignoresigint -autoupdate -timeout 1 -steambin /opt/gameserver/steam +ip 81.30.77.50 +hostport 27015 -replay -maxplayers 24 +map ctf_2fort -tickrate 100 +fps_max 0
At the moment the gameserver crashes when an update is due so I want to run this as a service and apply a cron to it.
To run it as a service I need an init script. None of the scripts on the net are working for me.
It would be great if there was a button at Custom Commands to create an init script automatically build from all the data put into the custom command.
Is this actually doable?
Comments
Submitted by JamieCameron on Sat, 04/28/2012 - 11:28 Comment #1
You can actually use the Bootup and Shutdown module to create an init script - it can be found under the System category. This will create a script for you like /etc/init.d/orangebox , which will run the command you enter.
You button in the Custom Commands module can also be changed to run that init script, rather than running the command directly.