mojira.dev
MC-202209

SIGTERM doesn't save server world

After testing it 10 times, it seems like the world isn't saved. Only once did it save players, but other than that, it doesn't have the same output as the stop command, so i'm led to assume it doesn't save.

 

This means that running a minecraft server as a daemon is harder without some workarounds such as using GNU screen or tmux.

Linked issues

Attachments

Comments 3

Please provide the full server log.

[media]

 

Here you go, as you can see, when SIGTERM is received, the log ends, but it doesn't say anything about saving chunks, saving player data, or anything like that.

Can confirm.
Affects 21w05b.
Only performed a quick test. Placed a few blocks then sent sigterm with:

kill -15 <pid>

Log makes no mention of saving world, players, etc. However when I restarted the server, I was in the correct location and the blocks I had placed where there. Running /stop then closed the server with mention of saving.

 

Charadon

(Unassigned)

Community Consensus

(Unassigned)

1.16.3, 21w05b

Retrieved