mirror of
https://github.com/kaboomserver/framework.git
synced 2025-08-07 04:53:03 +00:00
Implement crash loop detector
This commit is contained in:
parent
98aaae55ed
commit
3443b8c5a2
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue