mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-27 18:54:49 +00:00
Increase log time treshold
This commit is contained in:
parent
9a8cea0408
commit
cb2886a24f
|
@ -14,7 +14,7 @@ while true; do
|
||||||
# If localhost:25565 doesn't respond to ping, or if the log file is older than
|
# If localhost:25565 doesn't respond to ping, or if the log file is older than
|
||||||
# 3 minutes, kill the server
|
# 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
|
if [ "$(tail -20 $logfile | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then
|
||||||
rm -rf $HOME/worlds/
|
rm -rf $HOME/worlds/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue