diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 75947bf..ce112aa 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -188,10 +188,10 @@ fi ################################################################## # TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level ! ## SYNC GCHANGE EVERY 2 hours runtime -[[ $(($runtime % 97)) == 0 ]] && $MY_PATH/zen/gchange_INIT.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_INIT.txt -## SYNC SWARM EVERY 20 mn runtime +[[ $(($runtime % 122)) == 0 || "$runtime" == "1" ]] && $MY_PATH/zen/gchange_INIT.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_INIT.txt +## SYNC SWARM EVERY 17 mn runtime [[ $(($runtime % 17)) == 0 ]] && $MY_PATH/zen/gchange_IPFS_swarm.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_IPFS_swarm.txt -# QUICK SYNC SWARM EVERY 12 minutes +# QUICK SYNC SWARM EVERY 11 minutes [[ $(($runtime % 11)) == 0 ]] && $MY_PATH/zen/ipfs_FRIENDS_refresh.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.ipfs_FRIENDS_refresh.txt ## TODO ACTIVATE/DESACTIVATE LOG ######################################################################## @@ -228,9 +228,9 @@ fi # # REFRESHing MEDIAKEY / ZenTAG nano DHTs => Zen File ECONOMY wallet cycle if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || "$timebar" == "03:03" || $(($runtime % 720)) == 0 || $runtime == 12 ]]; then - # Every 12h runtime restarting IPFS daemon - [[ "$timebar" == "03:03" ]] && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 0 - [[ "$timebar" == "03:03" ]] && [[ ${YOU} == "xbian" ]] && sudo service ipfs restart && exit 0 + # At 03:03 and every 12h runtime restarting IPFS daemon + [[ "$timebar" == "03:03" || $(($runtime % 720)) == 0 ]] && [[ -f /etc/sudoers.d/systemctl ]] && sudo systemctl restart ipfs && exit 0 + [[ "$timebar" == "03:03" || $(($runtime % 720)) == 0 ]] && [[ ${YOU} == "xbian" ]] && sudo service ipfs restart && exit 0 #### Refresh & publish MEDIAKEYs $MY_PATH/zen/ipns_TAG_refresh.sh