Implement crash loop detector

This commit is contained in:
kaboom 2022-04-09 14:37:18 +03:00
parent 98aaae55ed
commit 3443b8c5a2
2 changed files with 14 additions and 0 deletions

View file

@ -13,5 +13,8 @@ while true; do
if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then
pkill -9 java
echo $(date) >> ~/kill.log
else
# Server is still running, reset the crash loop detector
rm ~/server/server_stops.log
fi
done