From 98aaae55ed7b0270822e46b96fa72b68b2c29bbb Mon Sep 17 00:00:00 2001 From: Kaboom <58372747+kaboombot@users.noreply.github.com> Date: Fri, 19 Nov 2021 17:39:07 +0200 Subject: [PATCH] Update outdated comment in alivecheck.sh --- script/alivecheck.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/alivecheck.sh b/script/alivecheck.sh index 27d01e9..2132886 100755 --- a/script/alivecheck.sh +++ b/script/alivecheck.sh @@ -8,8 +8,7 @@ set -x while true; do sleep 420 - # If server doesn't respond to ping, or if the log file is older than - # 3 minutes, kill the server + # If the server doesn't respond to ping, kill it if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then pkill -9 java