LinuxGSM comes with a game server
check-update command. All SteamCMD games servers are supported.
Unlike the update command
check-update will check for any available update and taking no action if no update is available. If there is an update it will send an alert.
A cronjob can be set to run
check-update at any given time.
To edit cronjobs, type:
A cronjob can be run as the
gameserver user or as
root, this choice is down to personal preference. Remember to amend the examples to match a specific game server.
Here is an example of a user based cronjob to check for an update once an hour.
0 * * * * /home/username/gameserver check-update > /dev/null 2>&1
Here is an example of a root based cronjob to check for an update once an hour.
0 * * * * su - username -c '/home/username/gameserver update' > /dev/null 2>&1
crontab.guru is a great resource to generate cronjobs.