mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-08 06:57:57 +00:00
Add .paused file when server is paused (#1830)
This commit is contained in:
@@ -21,4 +21,7 @@ if [[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^S.*$ ]] ; t
|
||||
# finally pause the process
|
||||
logAutopauseAction "Pausing Java process"
|
||||
pkill -STOP java
|
||||
|
||||
# create .paused file in data directory
|
||||
touch /data/.paused
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user