Add .paused file when server is paused (#1830)

This commit is contained in:
Kyle Stang
2022-11-17 08:45:15 -06:00
committed by GitHub
parent 8b5a3f2077
commit 2fc45d6650
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -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