It works!

This commit is contained in:
mathias 2019-08-06 21:08:06 +03:00
parent 5b2441142c
commit 6dae8ad5e1
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ tmux new -d -s server 'sh -x script/server'
tmux new -d -s remote 'sh -x script/remote'
tmux new -d -s schematics 'sh -x script/schematics'
#sleep 90
sleep 30
tmux new -d -s alivecheck 'sh -x script/alivecheck'

View file

@ -1,6 +1,6 @@
#!/bin/sh
while true; do
sleep 12
sleep 180
date="$(tail -1 $HOME/logs/latest.log | grep -oP '(?<=\[).*?(?=\])' | head -1 | date -f - +%s)"
if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 1 ] ||
[ "$(( $(date +%s) - ${date:=$(date +%s)} ))" -gt 180 ]; then