From df33a127028040f5ba132fc47e9c8936f6df760e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 10 Dec 2017 12:22:39 +0000 Subject: [PATCH] Wait longer when initialising scuttlebot pub on mesh peer --- src/freedombone-image-mesh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index 44d3d940..7659b057 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -1292,10 +1292,11 @@ function initialise_scuttlebot_pub { systemctl daemon-reload systemctl start scuttlebot.service - sleep 3 + sleep 10 if [ ! -d /etc/scuttlebot/.ssb ]; then echo $'Scuttlebot config not generated' >> /var/log/${PROJECT_NAME}.log + systemctl status scuttlebot -l >> /var/log/${PROJECT_NAME}.log exit 73528 fi @@ -1320,6 +1321,7 @@ function initialise_scuttlebot_pub { echo '}' >> /etc/scuttlebot/.ssb/config chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config systemctl restart scuttlebot.service + echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log } # whether to reset the identity