From 1cf83f318c30eea27eae5f9b2846d55c39e3680c Mon Sep 17 00:00:00 2001 From: mathias Date: Thu, 5 Sep 2019 00:16:35 +0300 Subject: [PATCH] Relaunch tmux sessions if they fail --- bin/start | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/start b/bin/start index 335544c..ca8278a 100755 --- a/bin/start +++ b/bin/start @@ -11,12 +11,18 @@ chmod -R 500 plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/ -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' +while true; do + 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 5 +done sleep 30 -tmux new -d -s alivecheck 'sh -x script/alivecheck' +while true; do + tmux new -d -s alivecheck 'sh -x script/alivecheck' + sleep 5 +done sleep infinity