Browse Source

One additional mesh sync

Bob Mottram 8 years ago
parent
commit
a51e5fa39e
No account linked to committer's email
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      src/freedombone-app-tox
  2. 2
    1
      src/freedombone-app-zeronet

+ 1
- 1
src/freedombone-app-tox View File

@@ -588,7 +588,7 @@ EOF
588 588
 
589 589
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
590 590
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
591
-        echo "*/1            * *   *   *   root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
591
+        echo "*/1            * *   *   *   root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/cro        echo "*/1            * *   *   *   root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
592 592
     fi
593 593
 }
594 594
 

+ 2
- 1
src/freedombone-app-zeronet View File

@@ -563,7 +563,8 @@ function mesh_zeronet {
563 563
 
564 564
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
565 565
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
566
-        echo "*/1            * *   *   *   root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
566
+        echo "*/1            * *   *   *   root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
567
+        echo "*/1            * *   *   *   root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
567 568
     fi
568 569
 
569 570
     chroot "$rootdir" systemctl enable tracker.service