From 6ad9cc186d081049c2a294024f8bd2b9cf0e5161 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Fri, 10 Jan 2020 14:25:57 -0500 Subject: [PATCH] dev: create directories for cluster script (#6927) --- dev/cluster/cluster.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" ) &