Update outdated comment in alivecheck.sh

This commit is contained in:
Kaboom 2021-11-19 17:39:07 +02:00 committed by GitHub
parent c610e66aea
commit 98aaae55ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,7 @@ set -x
while true; do while true; do
sleep 420 sleep 420
# If server doesn't respond to ping, or if the log file is older than # If the server doesn't respond to ping, kill it
# 3 minutes, kill the server
if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then
pkill -9 java pkill -9 java