mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-28 22:10:35 +00:00
It works!
This commit is contained in:
parent
5b2441142c
commit
6dae8ad5e1
|
@ -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 remote 'sh -x script/remote'
|
||||||
tmux new -d -s schematics 'sh -x script/schematics'
|
tmux new -d -s schematics 'sh -x script/schematics'
|
||||||
|
|
||||||
#sleep 90
|
sleep 30
|
||||||
|
|
||||||
tmux new -d -s alivecheck 'sh -x script/alivecheck'
|
tmux new -d -s alivecheck 'sh -x script/alivecheck'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true; do
|
while true; do
|
||||||
sleep 12
|
sleep 180
|
||||||
date="$(tail -1 $HOME/logs/latest.log | grep -oP '(?<=\[).*?(?=\])' | head -1 | date -f - +%s)"
|
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 ] ||
|
if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 1 ] ||
|
||||||
[ "$(( $(date +%s) - ${date:=$(date +%s)} ))" -gt 180 ]; then
|
[ "$(( $(date +%s) - ${date:=$(date +%s)} ))" -gt 180 ]; then
|
||||||
|
|
Loading…
Reference in a new issue