ソースを参照

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