瀏覽代碼

Wait longer when initialising scuttlebot pub on mesh peer

Bob Mottram 7 年之前
父節點
當前提交
df33a12702
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/freedombone-image-mesh

+ 3
- 1
src/freedombone-image-mesh 查看文件

@@ -1292,10 +1292,11 @@ function initialise_scuttlebot_pub {
1292 1292
     systemctl daemon-reload
1293 1293
     systemctl start scuttlebot.service
1294 1294
 
1295
-    sleep 3
1295
+    sleep 10
1296 1296
 
1297 1297
     if [ ! -d /etc/scuttlebot/.ssb ]; then
1298 1298
         echo $'Scuttlebot config not generated' >> /var/log/${PROJECT_NAME}.log
1299
+        systemctl status scuttlebot -l >> /var/log/${PROJECT_NAME}.log
1299 1300
         exit 73528
1300 1301
     fi
1301 1302
 
@@ -1320,6 +1321,7 @@ function initialise_scuttlebot_pub {
1320 1321
     echo '}' >> /etc/scuttlebot/.ssb/config
1321 1322
     chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
1322 1323
     systemctl restart scuttlebot.service
1324
+    echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log
1323 1325
 }
1324 1326
 
1325 1327
 # whether to reset the identity