From 940e558851eda5ece338247f7a11c026ea392cdd Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 15 Jun 2021 21:12:52 +0200 Subject: [PATCH] Every 12h runtime restarting IPFS daemon --- cron_MINUTE.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 260c859..26c756d 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -189,12 +189,9 @@ fi # /___/\___/_/ /_/ /_/ /_/ |_\____/ # # REFRESHing MEDIAKEY ZenTAG nano DHTs => Zen File ECONOMY wallet cycle -if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || $(($runtime % 720)) == 0 ]]; then - # Restarting IPFS daemon - [[ -f /etc/sudoers.d/systemctl || "$USER" == "xbian" ]] && sudo systemctl restart ipfs - - #### timebar DESYNC - sleep $((12 + RANDOM % 5)) +if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || $(($runtime % 720)) == 0 || $runtime == 12 ]]; then + # Every 12h runtime restarting IPFS daemon + [[ $(($runtime % 720)) == 0 ]] && [[ -f /etc/sudoers.d/systemctl || "$USER" == "xbian" ]] && sudo systemctl restart ipfs && sleep $((12 + RANDOM % 20)) #### Refresh & publish MEDIAKEYs $MY_PATH/zen/ipns_TAG_refresh.sh