Dedicated Server does not save world on SIGTERM

40 votes

Currently, dedicated server process (at least on linux) just terminates immediately when sent a SIGTERM. It only saves and shuts down cleanly on SIGINT (i.e. ctrl+c in console).

This leaves a swath of circumstances where the the process being asked nicely to terminate will just immediately exit, without saving, including but not limited to: user gently terminating processes, computer rebooting, etc.

This can results in progress rolling back unexpectedly to whenever the server last saved, or even possibly corrupt files.

Server should definitely also trap SIGTERM to save and shutdown cleanly.

Under consideration Suggested by: Alex Upvoted: 20 Oct Comments: 2

Comments: 2

Add a comment

0 / 1,000

* Your name will be publicly visible

* Email won't be displayed on screen