palworld-server-docker
palworld-server-docker copied to clipboard
Stopping does not appear to be graceful
When I use docker stop palworld to stop the container, it doesn't seem to gracefully shutdown the server. Instead, it waits until the end of the timeout and just kills it. The default is 10 seconds, I've tried 30 and 60 and they all just go until the end and kill it.
In the container I've tried sending it 15 and 9 via kill, but they don't seem to be particularly graceful either.
There does appear to be an rcon / admin command /Shutdown {Seconds} {MessageText} (source, so maybe that could be incorporated somehow?
I'll do more research and see what I can figure out, but maybe someone has better ideas?
I am weird and use systemd service files to docker run, so I've settled on installing rcon-cli and setting ExecStop=/usr/bin/rcon -a 127.0.0.1:25575 -p mypassword "Shutdown 10" to get graceful shutdowns for now.