From 4df1db95359566862adbb9f0b462f03f223089f3 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Tue, 14 Feb 2023 20:42:11 -0600 Subject: [PATCH] With autopause check for process in stopped or sleep state (#1963) --- files/auto/autopause-fcns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/auto/autopause-fcns.sh b/files/auto/autopause-fcns.sh index 975227cd..79096b95 100644 --- a/files/auto/autopause-fcns.sh +++ b/files/auto/autopause-fcns.sh @@ -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() {