mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #2936] confirmation bypass option for gameserver console command #2096
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#2096
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 @kriegtiger on GitHub (Jun 24, 2020).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2936
User Story
When setting up my LGSM arkserver instance, I used the console multiple times, and it was mildly bothersome to run the './arkserver console' command, then have to wait and input confirmation, before I could actually see the console.
Basic info
Further Information
It would be nice if it were possible to issue a '-y' or something along with the console command (ie: ./arkserver -y console ) in order to skip past that additional prompt, or maybe a shell variable that is effectively a 'usage understood' EULA style nod that says 'I know how to exit/use the console, skip ahead please'.
Further Reading
Numerous Linux commands/utilities have '-y' functionality to automatically say 'yes' to whatever prompt may be presented
@issue-label-bot[bot] commented on GitHub (Jun 24, 2020):
Issue-Label Bot is automatically applying the label
type: feature requestto this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
@dgibbs64 commented on GitHub (Jul 29, 2020):
So the reason a Y is added is to allow users to ability to understand how to correctly exit the console.
I think there are a couple of options here. Either add a count down timer of say 5 seconds. Or try to speed the messaging to get to the Y point. Im not to sure on implementing a -y option currently
@kriegtiger commented on GitHub (Jul 29, 2020):
Yep, I get that. It's a perfectly reasonable reminder to have for a while to remind people how it works, it's just an irritant once you're familiar with the process - hence the request for having a way to bypass it later if the user wishes.
What about having something like
'<CTRL-B>, D to exit'in the green bar at the bottom that is (at least for ARK?) mostly empty? Or maybe add a second green bar at the top with usage reminders. Information is still conveyed and will always be present in the user's vision in this case instead of just a blip at the beginning.@soccermitchy commented on GitHub (Aug 31, 2021):
Just saw this issue was still open - what about something like a
skipconsolewarningvariable, defaulting to not skip it? I'd be willing to submit a pull request for it. It's something that'd only be known by those who already know about it, anyway - ie. you'd have to dig into the config to see it, indicating you already know how to use LinuxGSM, and we can have how to exit be part of the config value description.@kriegtiger commented on GitHub (Aug 31, 2021):
That sounds good to me. Would it be possible to have that bit in the green bar at the bottom as a reminder of how to properly exit the console? That would alleviate an earlier responder's issue of 'we need the confirmation prompt to make sure people know how to quit the console'. Not sure if that area is reserved for other functions/data depending on the game being served.
@soccermitchy commented on GitHub (Aug 31, 2021):
In theory it'd be possible, but I'm not sure if that'd be something the LinuxGSM team would be willing to do on the official versions of LGSM. The bottom bar is from

tmux, and a lot of people use custom tmux configurations which may be setting their own custom text, and we'd be trampling on over the configuration if we set it. That said, it's literally one command to do it:tmux set -t $sessionname status-right " [<Ctrl-b> d to exit] "#{=21:pane_title}" %H:%M %d-%b-%y"Or from within the session itself:
:set status-right " [<Ctrl-b> d to exit] "#{=21:pane_title}" %H:%M %d-%b-%y"That would give you something like this:
@soccermitchy commented on GitHub (Aug 31, 2021):
Re: tmux configuration, you can put this in your
~/.tmux.conffor a similar thing:@rtxa commented on GitHub (Apr 8, 2022):
@dgibbs64 Sorry for tagging you. Any updates on this issue? I find a good solution to add some option like
skip-console-warningto avoid the annoyance to keep pressing Y everytime you want to access the console, start the server, etc. when you are already familiarized with LinuxGSM.@Jacksaur commented on GitHub (Jan 21, 2025):
Since there's still no way to disable the warning, I've done my best to copy the tmux command out of the script and run it directly under an alias instead.
For me
tmux -L tf2server-3292477d attach-session -t tf2serverworks for a TF2 server. Socket name was found by checkingls /tmp/tmux-1000while the server was running. And the session name by runningtmux -L $SOCKET_NAME list-sessionsafter.Working well enough so far, not sure how often the socket name changes but it's persisted between multiple server and system reboots, and shouldn't be too hard to update the alias if it does change.