fix alivechecker

This commit is contained in:
chipmunk 2024-08-04 00:34:02 -04:00
parent c3b3dc9ea8
commit 9b8cf7eb57

View file

@ -10,7 +10,7 @@ while true; do
# If the server doesn't respond to ping, kill it
if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 25565 | wc -m)" -eq 0 ]; then
if [ "$(env printf '\xFE' | nc -w 15 0.0.0.0 42069 | wc -m)" -eq 0 ]; then
pkill -9 java
echo $(date) >> ~/kill.log
else