[spp] [PATCH 1/1] bin: add opt for waiting pri in startup script

Yasufumi Ogawa yasufum.o at gmail.com
Mon Oct 14 20:45:14 CEST 2019


This update is to add option `--wait-pri` for `bin/start.sh`.

Signed-off-by: Yasufumi Ogawa <yasufum.o at gmail.com>
---
 bin/start.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/start.sh b/bin/start.sh
index f39d5f6..2f4e31a 100755
--- a/bin/start.sh
+++ b/bin/start.sh
@@ -64,7 +64,6 @@ echo "Start spp_primary"
 start_spp_pri
 
 if [ ! ${DRY_RUN} ]; then
-    echo "Waiting for spp-ctl is ready ..."
-    sleep 1
-    python3 ${SPP_DIR}/src/spp.py -b ${SPP_HOST_IP}
+    sleep 1  # wait for spp-ctl is ready
+    python3 ${SPP_DIR}/src/spp.py -b ${SPP_HOST_IP} --wait-pri
 fi
-- 
2.17.1



More information about the spp mailing list