You can use cron job to force an update dailly, but that may mean nobody can play on your server for most of a day while waiting for it to be updated. That's why I created the scripts the "check" if the released version in Steam is different that whats already running. If it is, then it forces and update, otherwise it doesn't do anything. That way I can have that run more regularly (hourly) and automatically apply the update.
I have several scripts involved actually, not just one. - Script that "runs" the server interactively under SSH. - Script that "starts" the run script in the background using GNU Screen utility - giving it a name to use to reconnect or stop it later. - Script that "stops" the server running under GNU Screen utility above. - Script that "updates" the server forcibly using SteamCMD. - Script that "checks" to see if an update should be applied. There's lots of other maintenance stuff my scripts do to (zip old log files, re-enforce some permissions that might get messed-up, overwrite some critical customized files after an update, etc.). I can e-mail you a copy of my "check" script for CS2 for reference, but you wont be able to use it directly because of all the external dependencies (calling my other scripts, etc.). But if it helps you see how to parse the steam.ini file, the Steam API call's results, etc - certainly willing to share. On Thu, Dec 7, 2023 at 1:18 AM Marcel Beringer - ruffneck at geforce.nl (via hlds_linux list) <hlds_linux@list.valvesoftware.com> wrote: > Hi Mecha, > > Thanks for your reply. > > May I ask what your update script looks like? Maybe it's an idea to use > cron and do a daily update(s) in stead of checking the API. > > Looking forward to hear from you. > > Best regards, > > Marcel > > > On 07/12/2023 05:01, Mecha Weasel wrote: > > I am doing basically the same thing I do with other Source games: > > I have a "check" script that runs every hour. It checks information from > the game's steam.inf file using the Steam API update check URL (example: > http://api.steampowered.com/ISteamApps/UpToDateCheck/v1?appid=$SERVER_APPID&version=$SERVER_CURRENT_VERSION&format=xml) > to see if a newer version of the app is available in Steam. > > If so, it then kicks-off an "update" script that basically invokes the > SteamCMD app update for that appid (730 now for CS). > > Seems to be working, but still keeping an eye on it. > > > On Wed, Dec 6, 2023 at 1:00 AM Marcel Beringer - ruffneck at geforce.nl > (via hlds_linux list) <hlds_linux@list.valvesoftware.com> wrote: > >> Hi, >> >> Is there a solution for auto updating a CS2 dedicated server on linux? >> >> Does '-autoupdate' do the trick in the startup line? >> >> I hope someone has a solution, I am now daily updating manually with >> 'steamcmd' and 'app_update 730'. >> >> Best regards, >> >> Marcel >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/ >> > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/ > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/ > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/