init-network: wait for storage miner before killing daemons

This commit is contained in:
Łukasz Magiera 2019-12-10 11:25:28 +01:00
parent cbf945d013
commit 3b20e9e367

View File

@ -94,6 +94,8 @@ env LOTUS_PATH="${ldt0222}" LOTUS_STORAGE_PATH="${mdt0222}" ./lotus-storage-mine
env LOTUS_PATH="${ldt0333}" LOTUS_STORAGE_PATH="${mdt0333}" ./lotus-storage-miner init --actor=t0333 --pre-sealed-sectors="${sdt0333}" --nosync=true --sector-size="${SECTOR_SIZE}" || true env LOTUS_PATH="${ldt0333}" LOTUS_STORAGE_PATH="${mdt0333}" ./lotus-storage-miner init --actor=t0333 --pre-sealed-sectors="${sdt0333}" --nosync=true --sector-size="${SECTOR_SIZE}" || true
kill $mpid kill $mpid
wait $mpid
for (( i=0; i<${#pids[@]}; i++ )); do for (( i=0; i<${#pids[@]}; i++ )); do
kill ${pids[$i]} kill ${pids[$i]}
done done