From 85b2e4ca2935000310dd64dbcfff39f28f69a295 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 21 Oct 2021 17:19:18 +0200 Subject: [PATCH] Start socat only once Fixes #124 --- script/dev-cluster.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/dev-cluster.sh b/script/dev-cluster.sh index 9ac7ff34..d76c98a4 100755 --- a/script/dev-cluster.sh +++ b/script/dev-cluster.sh @@ -47,6 +47,10 @@ EOF echo -en "$LABEL configuration written to $CONF_PATH\n" +(garage -c /tmp/config.$count.toml server 2>&1|while read r; do echo -en "$LABEL $r\n"; done) & +done +# >>>>>>>>>>>>>>>> END FOR LOOP ON NODES + if [ -z "$SKIP_HTTPS" ]; then echo -en "$LABEL Starting dummy HTTPS reverse proxy\n" mkdir -p /tmp/garagessl @@ -62,10 +66,6 @@ if [ -z "$SKIP_HTTPS" ]; then socat openssl-listen:4443,reuseaddr,fork,cert=/tmp/garagessl/test.pem,verify=0 tcp4-connect:localhost:3911 & fi -(garage -c /tmp/config.$count.toml server 2>&1|while read r; do echo -en "$LABEL $r\n"; done) & -done -# >>>>>>>>>>>>>>>> END FOR LOOP ON NODES - sleep 3 # Establish connections between nodes for count in $(seq 1 3); do