mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #127] Add -autoupdate feature #105
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dgibbs64 on GitHub (Aug 1, 2014).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/127
Originally assigned to: @dgibbs64 on GitHub.
-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
@medic917 commented on GitHub (Aug 26, 2014):
Yes!
@dgibbs64 commented on GitHub (Sep 23, 2014):
Feature now added
@iNilo commented on GitHub (Oct 26, 2016):
I'm looking into this currently, was this actually added ?
-autoupdate -steam_dir <insert steam path>/ -steamcmd_script updatescript.txtupdatescript.txt
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
_restarton the server, which would issue a restart/update instead of a cronjob with./csgoserver update@UltimateByte commented on GitHub (Oct 26, 2016):
@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 commented on GitHub (Oct 26, 2016):
@UltimateByte very true, so was I but its nicer to do it from within the server process itself.
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 commented on GitHub (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 commented on GitHub (Oct 27, 2016):
Mh... It seems quite hard to me to integrate a plugin to LGSM's behavior. However, a similar idea had been proposed
Here: https://github.com/GameServerManagers/LinuxGSM/issues/674
And especially here: https://github.com/GameServerManagers/LinuxGSM/pull/890
I'd be happy to work on this 890 thing, with custom text and so on.
@iNilo commented on GitHub (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_diris much more feasible than supporting sourcemod plugins@UltimateByte commented on GitHub (Oct 27, 2016):
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 commented on GitHub (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 commented on GitHub (Oct 27, 2016):
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 commented on GitHub (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_scriptI found this issue and I thought it was added, (which its not afaik?) nothing more to it?
@UltimateByte commented on GitHub (Oct 27, 2016):
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 commented on GitHub (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[bot] commented on GitHub (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.