dev: create directories for cluster script (#6927)

This commit is contained in:
Tim Gross 2020-01-10 14:25:57 -05:00 committed by GitHub
parent 4f6a8263ef
commit 6ad9cc186d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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" ) &