Skip to content
UltimateByte edited this page Jun 25, 2016 · 5 revisions

Updating your server

LGSM comes with an update functions. All Steam games servers are supported, as well as some other servers such as Teamspeak.

update

Just run :

./gameserver update

And voilà !

Automatic update

Update on start

You can update your server on start, just by editing your game main script.

updateonstart="on"

Scheduled updates

Using cronjobs, you can set a cronjob to run the update function at any given time. LGSM team advise you to use root cronjobs. Just login as root, then edit your cronjobs.

To edit your cronjobs, type :

crontab -e

Here is an example of a user based cronjob for daily update at 5am (replace the username and gameserver according to your case) :

0 5 * * * /home/username/gameserver update > /dev/null 2>&1

Here is an example of a root based cronjob for daily update at 5am :

0 5 * * * su - username -c '/home/username/gameserver update' > /dev/null 2>&1

When an update isn't enough...

Sometimes, SteamCMD can mess up, either failing to download files properly, or missing some important files to update. So if your server isn't starting after an update, or if it's still at the same server version, run the validate command.

./gameserver validate

Note that if you modified server core server files, they will be restored to their original version. But who does that anyway ?

Updating your LGSM script

LGSM has the ability to self update functions.

update-functions

./gameserver update-functions
Clone this wiki locally