Increase log time treshold

This commit is contained in:
mathiascode 2020-01-06 07:03:24 +02:00
parent 9a8cea0408
commit cb2886a24f

View file

@ -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