Skip to content

Add -autoupdate feature #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dgibbs64 opened this issue Aug 1, 2014 · 15 comments
Closed

Add -autoupdate feature #127

dgibbs64 opened this issue Aug 1, 2014 · 15 comments
Assignees
Labels
type: feature request New feature or request

Comments

@dgibbs64
Copy link
Member

dgibbs64 commented Aug 1, 2014

-autoupdate can be added to update the servers as soon as an update is released on SteamCMD. It may be worth adding the switch to all servers that support it

@dgibbs64 dgibbs64 added the bug label Aug 1, 2014
@dgibbs64 dgibbs64 changed the title csgoserve: INvestigate what this guy said csgoserve: Investigate what this guy said Aug 1, 2014
@dgibbs64 dgibbs64 changed the title csgoserve: Investigate what this guy said csgoserver: Investigate what this guy said Aug 1, 2014
@dgibbs64 dgibbs64 added enhancement and removed bug labels Aug 5, 2014
@dgibbs64 dgibbs64 changed the title csgoserver: Investigate what this guy said Add -autoupdate feature Aug 5, 2014
@medic917
Copy link

Yes!

@dgibbs64 dgibbs64 assigned dgibbs64 and unassigned dgibbs64 Sep 1, 2014
@dgibbs64 dgibbs64 self-assigned this Sep 10, 2014
@dgibbs64
Copy link
Member Author

Feature now added

@iNilo
Copy link

iNilo commented Oct 26, 2016

I'm looking into this currently, was this actually added ?

-autoupdate -steam_dir <insert steam path>/ -steamcmd_script updatescript.txt

updatescript.txt

login anonymous
force_install_dir <insert steam path>/<rest of the path to the cs folder>/cs/
app_update 740 validate
exit

I know there is ./csgoserver update, but that is LGSM functionality and not the "native" update process ?

We could then use the srcds itself to update itself with plugins, like executing _restart on the server, which would issue a restart/update instead of a cronjob with ./csgoserver update

@UltimateByte
Copy link
Contributor

@iNilo I'm not sure if this autoupdate is still a thing.
I personally like to cronjob it. You can even cronjob it every 30 minutes or every hour or whatever you like as long as it isn't too short.
https://github.com/GameServerManagers/LinuxGSM/wiki/Update

@iNilo
Copy link

iNilo commented Oct 26, 2016

@UltimateByte very true, so was I but its nicer to do it from within the server process itself.

  1. plugin notices an update
  2. plugin waits for match/round/map to finish and warns players
  3. plugin communicates with other servers and advises players to move to another server (which have updated)
  4. plugin does a hard countdown (30s before shutdown)
  5. plugin kicks the users with a message that the server is shutting down for an update.

Its much nicer for players then just to nuke the server with a cronjob and a mass timeout.

It would be very nice that lgsm generates the lines & the update file. which then can be turned off & on within the config/main script.

the current way (cronjobs) is perfectly fine, however it could be more user friendly using plugins with kick messages and _restart

@iNilo
Copy link

iNilo commented Oct 26, 2016

To followup, this is a functional sourcemod plugin that has this functionality (partially)
https://github.com/Sarabveer/SM-Plugins/blob/master/sw_auto_steam_update/scripting/auto_steam_update.sp

@UltimateByte
Copy link
Contributor

Mh... It seems quite hard to me to integrate a plugin to LGSM's behavior. However, a similar idea had been proposed
Here: #674
And especially here: #890

I'd be happy to work on this 890 thing, with custom text and so on.

@iNilo
Copy link

iNilo commented Oct 27, 2016

The plugins are for server administrators, I'd rather see support for the command line (build in) options then for the sourcemod plugins itself.

Making LGSM generate an update script, with appropriate command line addons such as -autoupdate -steam_dir is much more feasible than supporting sourcemod plugins

@UltimateByte
Copy link
Contributor

Well, and then how would you run the script without a cronjob ?
LGSM is already an update script, so i don't really get your idea.
What i see then is more of a console command sent if an update is found an a timer as proposed in #890.
Would be nice to really implement rcon at some point so that even games like rust with no console could benefit from it.

@iNilo
Copy link

iNilo commented Oct 27, 2016

The idea is that rather than relying on cronjob, use the native builtin functionality of updating csgo servers.

more like ./csgoserver generateupdatescripts
and then inside ./csgoserver
use_external_update_scripts = true.
so whenever we execute "_restart" (from within srcds, with rcon/plugins) it would check for updates

@UltimateByte
Copy link
Contributor

And how exactly srcds would know it should have to use this script ? That's what i don't get.
For me autoupdate would happen at srcds level, so i don't see how it would use an external script, LGSM or not.

@iNilo
Copy link

iNilo commented Oct 27, 2016

its build into the CSGO/TF2/... srcds.

-autoupdate - Attempts to auto-update the server when an update comes out. You MUST use -steam_dir and -steamcmd_script

I found this issue and I thought it was added, (which its not afaik?) nothing more to it?

@UltimateByte
Copy link
Contributor

So just just append -autoupdate to start parms then it will update as soon as possible. This is what i thought for the beginning. Then how does this autoupdate starts a script upon updates ? Does it have to have a specific name ? Location ?

@walliski
Copy link

walliski commented Dec 1, 2016

👍 for adding built in support for autoupdate

When you add the autoupdate to your command line arguments when starting the server you also need to provide steamcmd with a script to run. This script basically tells steamcmd to update a server in a specific folder. However this script is not available by default in LGSM?

Would be good to use autoupdate at least for CS:GO, since it updates automatically when a server is empty, but not else...

@lock
Copy link

lock bot commented Jul 19, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants