From 3b20e9e36769956aabeed643508f2876d4ebaf40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 10 Dec 2019 11:25:28 +0100 Subject: [PATCH] init-network: wait for storage miner before killing daemons --- scripts/init-network.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/init-network.sh b/scripts/init-network.sh index 29e16d77c..873417f7f 100755 --- a/scripts/init-network.sh +++ b/scripts/init-network.sh @@ -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 kill $mpid +wait $mpid + for (( i=0; i<${#pids[@]}; i++ )); do kill ${pids[$i]} done