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

_restart command stops the server instead of restarting #4

Closed
IntensityGit opened this issue Dec 13, 2019 · 2 comments
Closed

_restart command stops the server instead of restarting #4

IntensityGit opened this issue Dec 13, 2019 · 2 comments

Comments

@IntensityGit
Copy link

IntensityGit commented Dec 13, 2019

Describe the bug
When I restart my csgo servers I use the _restart command but WindowsGSM recognizes this as a stop command and doesn't restart the server.

To Reproduce
Go to the console type _restart.

Expected behavior
The server to close and restart but instead it's recognized as a stop command and just shuts down.

@BattlefieldDuck
Copy link
Member

Thanks for the report!

The cause of the problem
As both quit and _restart commands return exitcode 0 which means WindowsGSM thinks the server stopped successfully, so the server will not auto-restart.

In the next patch
WindowsGSM will "ignore" the exitcode, any reasons cause the server stopped externally will be seen as server crashed. That's mean if autorestart="1" and, the server will auto-restart in your case.

@IntensityGit
Copy link
Author

Perfect, thank you.

BattlefieldDuck added a commit that referenced this issue Dec 13, 2019
- Fixed #4
- Fixed Rust server Windows Firewall bug
- Fixed workshop map bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants