schedule sync on start first 30 mn
This commit is contained in:
parent
cdfe5a0bcd
commit
e9d6159f8c
|
@ -188,9 +188,9 @@ fi
|
||||||
##################################################################
|
##################################################################
|
||||||
# TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level !
|
# TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level !
|
||||||
## SYNC GCHANGE EVERY 6 hours runtime
|
## SYNC GCHANGE EVERY 6 hours runtime
|
||||||
[[ $(($runtime % 360)) == 0 || "$runtime" == "1" ]] && $MY_PATH/zen/gchange_INIT.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_INIT.txt
|
[[ $(($runtime % 360)) == 0 || "$runtime" == "5" ]] && $MY_PATH/zen/gchange_INIT.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_INIT.txt
|
||||||
## SYNC SWARM EVERY 720 mn runtime
|
## SYNC SWARM EVERY 720 mn runtime
|
||||||
[[ $(($runtime % 720)) == 0 || "$runtime" == "5" ]] && $MY_PATH/zen/gchange_IPFS_swarm.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_IPFS_swarm.txt
|
[[ $(($runtime % 720)) == 0 || "$runtime" == "10" ]] && $MY_PATH/zen/gchange_IPFS_swarm.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.gchange_IPFS_swarm.txt
|
||||||
# QUICK SYNC SWARM EVERY 20 minutes
|
# QUICK SYNC SWARM EVERY 20 minutes
|
||||||
[[ $(($runtime % 20)) == 0 ]] && $MY_PATH/zen/ipfs_SWARM_refresh.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.ipfs_SWARM_refresh.txt
|
[[ $(($runtime % 20)) == 0 ]] && $MY_PATH/zen/ipfs_SWARM_refresh.sh 2>&1 > /home/${YOU}/.zen/ipfs/.${IPFSNODEID}/.log.ipfs_SWARM_refresh.txt
|
||||||
## TODO ACTIVATE/DESACTIVATE LOG
|
## TODO ACTIVATE/DESACTIVATE LOG
|
||||||
|
@ -244,7 +244,7 @@ fi
|
||||||
# 5 mn / 24h REBOOT & MIDNIGHT:01 : CLEANING & UPDATE
|
# 5 mn / 24h REBOOT & MIDNIGHT:01 : CLEANING & UPDATE
|
||||||
##################################################################
|
##################################################################
|
||||||
##################################################################
|
##################################################################
|
||||||
if [[ "$timebar" == "00:01" || "$runtime" == "12" || $(($runtime % 1380)) == 0 ]]; then
|
if [[ "$timebar" == "00:01" || "$runtime" == "30" || $(($runtime % 1380)) == 0 ]]; then
|
||||||
echo '
|
echo '
|
||||||
# ____ ____ ____ ___
|
# ____ ____ ____ ___
|
||||||
# / __ \/ __ \ _ / __ < /
|
# / __ \/ __ \ _ / __ < /
|
||||||
|
|
Loading…
Reference in New Issue