Skip to content
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

[Bug]: Can't stop Rust server gracefully #4720

Open
HunterZ opened this issue Dec 21, 2024 · 0 comments
Open

[Bug]: Can't stop Rust server gracefully #4720

HunterZ opened this issue Dec 21, 2024 · 0 comments

Comments

@HunterZ
Copy link

HunterZ commented Dec 21, 2024

User story

As a rust server owner, I need LGSM to stop the server via a quit RCON command to trigger a clean save on exit

Game

Rust

Linux distro

Ubuntu 24.04

Command

command: stop

Further information

LGSM's default stopmode for Rust is CTRL+C, which causes a hard shutdown that tends to have nasty side effects like forgetting teams, because the server doesn't get a chance to generate a full save.

Changing stopmode to quit results in failure, apparently because LGSM tries to send it to the server console instead of via RCON.

Relevant log output

rustserver@ubuntultsvm:~$ ./rustserver stop
[ ERROR ] Stopping rustserver: Graceful: sending "quit": FAIL
[  OK  ] Stopping rustserver: LinuxGSM


### Steps to reproduce

1. Configure server for `stopmode=3`
2. `./rustserver start` and wait for server startup to complete
3. `./rustserver stop`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New Issues
Development

No branches or pull requests

1 participant