From cb2886a24f075512c6e558bc255181fdd11227a0 Mon Sep 17 00:00:00 2001 From: mathiascode Date: Mon, 6 Jan 2020 07:03:24 +0200 Subject: [PATCH] Increase log time treshold --- script/alivecheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/alivecheck.sh b/script/alivecheck.sh index 5b4d5b7..a15fc49 100755 --- a/script/alivecheck.sh +++ b/script/alivecheck.sh @@ -14,7 +14,7 @@ while true; do # If localhost:25565 doesn't respond to ping, or if the log file is older than # 3 minutes, kill the server - if [ "$(( $(date +%s) - $(date -r $logfile +%s) ))" -gt 180 ]; then + if [ "$(( $(date +%s) - $(date -r $logfile +%s) ))" -gt 360 ]; then if [ "$(tail -20 $logfile | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then rm -rf $HOME/worlds/ fi