summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasufumi Ogawa <yasufum.o@gmail.com>2019-10-15 03:45:14 +0900
committerYasufumi Ogawa <yasufum.o@gmail.com>2019-11-04 22:39:01 +0900
commit1b06b6fb24005d2451ef5baf0d90702960787caf (patch)
tree1aab31ebddb5a660c7aac061b93bce62339b7bf4
parentbcc404348c7c9e9ef12a2461aeecadaf941ea94a (diff)
downloadspp-1b06b6fb24005d2451ef5baf0d90702960787caf.zip
spp-1b06b6fb24005d2451ef5baf0d90702960787caf.tar.gz
spp-1b06b6fb24005d2451ef5baf0d90702960787caf.tar.xz
bin: add opt for waiting pri in startup script
This update is to add option `--wait-pri` for `bin/start.sh`. Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rwxr-xr-xbin/start.sh5
1 files 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