first of all, copy srcds_run to srcds_run2 and then edit the file and set
STEAM=""

then make a script with the following content:
#!/bin/sh
cd /opt/SRCDS_tf2
./steam -command update -game tf -dir /opt/SRCDS_tf2

edit the paths for your installation and save it as
/opt/SRCDS_tf2/run_update

then edit crontab and add this line:
0 * * * * /opt/SRCDS_tf2/run_update >>/opt/SRCDS_tf2/update.log 2>&1

this will execute update script every hour...

your server still needs to be started with -autoupdate flag, so it can
utilize MasterRequestRestart message and restart the server on changelevel
to update to take effect


2009/3/21 Ash Fox <[email protected]>

> Kaspars wrote:
> > I actually modified srcsds_run script to not run ./steam on startup, but
> > left in the -autoupdate option, so the server restarts on changemap and
> made
> > a custom crontab script, that updates game every hour... this speeds up
> > things and server doesn't get empty on every update
> >
>
> Would you mind giving me a example on how you did that, please?
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to