From 00e04fc2d5d61c7fce0b6c75a1faa6b0270017b0 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 30 Mar 2024 20:22:38 -0500 Subject: [PATCH] Removed write to /var/log/knocked-source during autopause resume (#2749) --- files/auto/autopause-daemon.sh | 6 +----- files/auto/resume.sh | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/files/auto/autopause-daemon.sh b/files/auto/autopause-daemon.sh index e10bf18..3834b2e 100644 --- a/files/auto/autopause-daemon.sh +++ b/files/auto/autopause-daemon.sh @@ -124,11 +124,7 @@ do STATE=E else TIME_THRESH=$(($(current_uptime)+$AUTOPAUSE_TIMEOUT_KN)) - from=unknown - if [ -e /var/log/knocked-source ]; then - from=$(cat /var/log/knocked-source) - fi - logAutopause "Server was knocked from $from - waiting for clients or timeout" + logAutopause "Server was knocked - waiting for clients or timeout" STATE=K fi fi diff --git a/files/auto/resume.sh b/files/auto/resume.sh index 19a4fa6..203ded7 100644 --- a/files/auto/resume.sh +++ b/files/auto/resume.sh @@ -6,8 +6,6 @@ if isTrue "${DEBUG_AUTOPAUSE}"; then fi if [[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then - logAutopauseAction "Knocked from $1, resuming Java process" - echo "$1" > /var/log/knocked-source pkill -CONT java # remove .paused file from data directory