check-update
LinuxGSM comes with a game server check-update
command. All SteamCMD games servers are supported, as well as some other servers such as Teamspeak, Minecraft, Mumble & Factorio.
Commands
Standard: ./gameserver check-update
Short: ./gameserver cu
Unlike the update command check-update
will check for any available updates and take no action if no update is available. If there is an update it will send an alert.
Automatic check for update
Scheduled check for updates
A cronjob can be set to run check-update
at any given time.
Ensure that an alert is configured so you are alerted to any updates
To edit cronjobs, type:
crontab -e
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.
Here is an example of a root-based cronjob to check for an update once an hour.
The extra su - username -c
indicates which user to run the script as.
crontab.guru is a great resource to generate cronjobs.
Last updated