mirror of
https://github.com/kaboomserver/framework.git
synced 2025-01-06 14:50:44 +00:00
Check 0.0.0.0 instead of play.kaboom.pw (#12)
This commit is contained in:
parent
10fd2df3c3
commit
c610e66aea
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ while true; do
|
|||
# If server doesn't respond to ping, or if the log file is older than
|
||||
# 3 minutes, kill the server
|
||||
|
||||
if [ "$(env printf '\xFE' | nc -w 15 play.kaboom.pw 25565 | wc -m)" -eq 0 ]; then
|
||||
if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then
|
||||
pkill -9 java
|
||||
echo $(date) >> ~/kill.log
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue