mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-26 19:06:25 +00:00
With autopause check for process in stopped or sleep state (#1963)
This commit is contained in:
@@ -5,7 +5,7 @@ current_uptime() {
|
||||
}
|
||||
|
||||
java_running() {
|
||||
[[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^S.*$ ]]
|
||||
[[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^(S|T).*$ ]]
|
||||
}
|
||||
|
||||
java_process_exists() {
|
||||
|
||||
Reference in New Issue
Block a user