crazy-max / csgo-server-launcher

Counter-Strike Global Offensive Dedicated Server Launcher
GNU Lesser General Public License v3.0
588 stars 119 forks source link

Update server with -autoupdate #1

Closed Mickroz closed 12 years ago

Mickroz commented 12 years ago

Is there any way to let the server autoupdate with this? its quite anoying to have to update the servers manually everytime. I made a cronjob for it, but sometimes the update gets done after the cronjob time, so then no one can log in and i have to do it manually.

crazy-max commented 12 years ago

You can update the server with your crontab like the example in the README. If the server is started, the update option stop the server, perform the update and restart. For the -autoupdate option on srcds_run we have to wait a patch from steam. Btw, what is your Linux distrib. ?

Mickroz commented 12 years ago

yeah, spoke too soon, the update works, the crontab too, but yesterday my servers updated at 0:15, later that day an update came, so no one could join the server, had to do it manually run the update script. I thought the -autoupdate line, would auto update the server when a new patch comes out? Im on CentOS 6.

crazy-max commented 12 years ago

Yes exactly but for now we have to used my update option + crontab as workaround.

Mickroz commented 12 years ago

Ok, maybe you can build in the -autoupdate option? the server spams "Your server needs to be restarted in order to receive the latest update." or "Your server will be restarted on map change." in the logs whenever there is a update available, but if the server is empty, it will not restart, so maybe it can start the update option when text is "Your server needs to be restarted in order to receive the latest update" or "Your server will be restarted on map change." and players equals 0 ?

crazy-max commented 12 years ago

Good suggestion, I will make some changes in my script and do some testing. Moreover, it is written on the Valve Developer Community page that the update process can only be done by SteamCMD for now : https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Downloading_the_CS:GO_Dedicated_Server

Mickroz commented 12 years ago

Nice, if you want me to test it also, just post here then :D

crazy-max commented 12 years ago

I'm going to push an update of the script today ;)

Mickroz commented 12 years ago

cool :D

crazy-max commented 12 years ago

I have added the -autoupdate option in the PARAM_START var. Valve has added the -autoupdate option support to srcds_run the 2012/08/22. The option perform the update without the validate option to start the server quickly. I kept the update option in my script for a full and validate update of the game. For more info : http://store.steampowered.com/news/8702/ Keep me informed ;)

Mickroz commented 12 years ago

uploaded and waiting for an update :D just removed my cron so it will not update by script

Mickroz commented 12 years ago

Works :D servers are updated automaticly :D

crazy-max commented 12 years ago

Ok nice :)