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