Server doesn't seem to gracefully shut down #3680
-
Hey all, I'm sure this is user error but I've been trying for ages and I can't seem to get this to work nicely. When I run the /stop command from within the game as a client (ie op user), the server gracefully shuts down, and the logs show all the lines about saving and shutting down. But when I run the Am I missing something, or is this normal? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 20 replies
-
That is not normal. Normally a container stop will send a "TERM" signal which will then be handled by issuing a "/stop" command. Please re-test with a completely vanilla server where only the env variable EULA is set to true. Provide the logs if the server is still not stopping as it should be. This is more likely an issue that needs to be discussed with Unraid since they maintain the app wrapper of my image. |
Beta Was this translation helpful? Give feedback.
-
Continuing from the example above with a container named "mc", get a process listing inside the container:
and processes should include at least these two:
Then send the same TERM signal to PID 1 as what a
And again the container output should be
|
Beta Was this translation helpful? Give feedback.
Thanks. It's acting like the env var
EXEC_DIRECTLY
is set to "true". It really should be left at the default of "false" or else you lose features like graceful signal handling.