Dedicated Server does not save world on SIGTERM

46 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 Apr, '23 Comments: 2

Comments: 2