diff options
-rwxr-xr-x | bin/lut.sh | 27 |
1 files changed, 22 insertions, 5 deletions
@@ -102,20 +102,37 @@ cleanup () { } start_nodes () { + + FAIL=0 + echo "Starting all the VMs, you should go do something else now, this will take a while..." # monarch: monitor, tor hidden service, webapp - leap vm add monarch + leap vm add monarch & # dogface: couchdb/soledad - leap vm add dogface + leap vm add dogface & # hairstreak: mx - leap vm add hairstreak + leap vm add hairstreak & # checkerspot: openvn, need a gateway address to do openvpn, disabled # spicebush: static node, with hidden service, disabled because static service is not tested # leap vm add spicebush # cloak: tor exit - leap vm add cloak + leap vm add cloak & # swallowtail: singlenode - leap vm add swallowtail + leap vm add swallowtail & + + for job in `jobs -p` + do + wait $job || let "FAIL+=1" + done + + if [ "$FAIL" == "0" ]; + then + echo "Nodes started successfully!" + else + echo "Something happened starting a node ($FAIL)!" + cleanup 1 + fi + } deploy () { |