[CS:GO] Questions regarding -autoupdate server parameter
Hey guys,
I am currently hosting a few servers. All of those servers are compared regulary to some master files, and if they are mismatching, it triggers an update for all of those. Recently I've seen that there is an -autoupdate option and checked it out over on the Valve Dev Wiki. It lists what is needed for it to work, but not exactly how it works. Hence the question: What does -autoupdate exactly run?
Haven't been using this since now and just wanted to know if anyone has some experience with it :) |
Re: [CS:GO] Questions regarding -autoupdate server parameter
The only thing the game does with the "-autoupdate" launch option is shut off the server the next time hibernation starts (or immediately when already hibernating) when the server is marked as "Out of date" by Steam, it does not kick any player and it might take upwards of 1 hour for an update to roll out to all servers and clients.
The "srcds_run" script that actually starts the server will run SteamCMD (Which will cause the server to update) if configured to do so using "-steam_dir" to point to the directory where the "steamcmd.sh" file is and "-steamcmd_script" to point to the SteamCMD-Script to execute. This only works on linux. An example would be: Code:
./srcds_run -game csgo -autoupdate -steam_dir /home/Steam/ -steamcmd_script /home/Steam/csgo/steamcmd_update.txt |
Re: [CS:GO] Questions regarding -autoupdate server parameter
Cheers, thank you for the clarification. That makes total sense and is indeed a pretty good idea! Also thanks for the information in regards to how long it can possible take for the update to kick in. :)
|
Re: [CS:GO] Questions regarding -autoupdate server parameter
can someone tell my why my server always needs the "steam.sh" file for auto updating? When i download steamcmd for linux and setup -autoupdate correctly it tells me always at server start/restart (steam.sh) not found. my steamcmd wants a steam.sh. i found an old steam.sh file which i add to the steamcmd folder and with this autoupdating works fine. if i remove the steam.sh file, autoupdate stopped working.
here is an output without the steam.sh file: PHP Code:
PHP Code:
Edit: When i look at the original srcds_run file, it says on line 301. PHP Code:
Edit 2: it works when i edit the srcds_run file and replace line 301 steam.sh with steamcmd.sh. but that can't be a solution while it works for others without these changes.... |
Re: [CS:GO] Questions regarding -autoupdate server parameter
I did away with the srcds_run script a long time ago, I was also having problems with the -autoupdate for a while: "srcds_run: 1: eval: +runscript: not found" - I needed to remove 'eval' and just run steamcmd.sh directly. I ended up duplicating the script, stripping a lot out, and putting all my params inside of it, I just run that now and I know it wont get overwritten anymore.
|
Re: [CS:GO] Questions regarding -autoupdate server parameter
Quote:
if yes then you need to check properties owner of it |
All times are GMT -4. The time now is 04:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.