diff --git a/dev/cluster/cluster.sh b/dev/cluster/cluster.sh index e3260ca58..17ccb3191 100755 --- a/dev/cluster/cluster.sh +++ b/dev/cluster/cluster.sh @@ -1,4 +1,9 @@ -# launch server +#!/usr/bin/env bash +set -e + +mkdir -p /tmp/server{1,2,3} /tmp/client{1,2} + +# launch server ( nomad agent -config=server1.hcl 2>&1 | tee "/tmp/server1/log" ; echo "Exit code: $?" >> "/tmp/server1/log" ) & ( nomad agent -config=server2.hcl 2>&1 | tee "/tmp/server2/log" ; echo "Exit code: $?" >> "/tmp/server2/log" ) &