Add hacky sleep

This commit is contained in:
Michael Vines 2018-12-10 13:23:38 -08:00 committed by Grimes
parent d7032aeb43
commit 4b05ee6811
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ for cmd in $backgroundCommands; do
echo "--- Start $cmd" echo "--- Start $cmd"
rm -f log-"$cmd".txt rm -f log-"$cmd".txt
multinode-demo/"$cmd".sh > log-"$cmd".txt 2>&1 & multinode-demo/"$cmd".sh > log-"$cmd".txt 2>&1 &
if [[ $cmd = drone ]]; then
# Give the drone time to startup before the fullnodes attempt to airdrop
# from it (TODO: alternatively adjust `solana-wallet airdrop` to retry on
# "Connection refused" errors)
sleep 2
fi
declare pid=$! declare pid=$!
pids+=("$pid") pids+=("$pid")
echo "pid: $pid" echo "pid: $pid"