mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-26 04:50:36 +00:00
Wrap proxy in infinite loop
This commit is contained in:
parent
7c4d1ad880
commit
c5b686d4da
|
@ -17,9 +17,9 @@ ssh-keyscan github.com >> .ssh/known_hosts
|
|||
# checker in the background
|
||||
|
||||
while true; do
|
||||
dtach -n server script/server.sh
|
||||
dtach -n proxy script/proxy.sh
|
||||
dtach -n schematics script/schematics.sh
|
||||
dtach -n server script/server.sh > /dev/null 2>&1
|
||||
dtach -n proxy script/proxy.sh > /dev/null 2>&1
|
||||
dtach -n schematics script/schematics.sh > /dev/null 2>&1
|
||||
sleep 5
|
||||
done &
|
||||
|
||||
|
|
|
@ -6,9 +6,12 @@
|
|||
|
||||
set -x
|
||||
|
||||
ssh -i ~/.ssh/proxy \
|
||||
-o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \
|
||||
-c aes128-ctr \
|
||||
-C -S none -N -T -R \
|
||||
25565:localhost:25565 \
|
||||
remote@play.kaboom.pw
|
||||
while true; do
|
||||
ssh -i ~/.ssh/proxy \
|
||||
-o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \
|
||||
-c aes128-ctr \
|
||||
-C -S none -N -T -R \
|
||||
25565:localhost:25565 \
|
||||
remote@play.kaboom.pw
|
||||
sleep 1
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue