Every 12h runtime restarting IPFS daemon
This commit is contained in:
parent
38da96b4b6
commit
940e558851
|
@ -189,12 +189,9 @@ fi
|
||||||
# /___/\___/_/ /_/ /_/ /_/ |_\____/
|
# /___/\___/_/ /_/ /_/ /_/ |_\____/
|
||||||
#
|
#
|
||||||
# REFRESHing MEDIAKEY ZenTAG nano DHTs => Zen File ECONOMY wallet cycle
|
# REFRESHing MEDIAKEY ZenTAG nano DHTs => Zen File ECONOMY wallet cycle
|
||||||
if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || $(($runtime % 720)) == 0 ]]; then
|
if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || $(($runtime % 720)) == 0 || $runtime == 12 ]]; then
|
||||||
# Restarting IPFS daemon
|
# Every 12h runtime restarting IPFS daemon
|
||||||
[[ -f /etc/sudoers.d/systemctl || "$USER" == "xbian" ]] && sudo systemctl restart ipfs
|
[[ $(($runtime % 720)) == 0 ]] && [[ -f /etc/sudoers.d/systemctl || "$USER" == "xbian" ]] && sudo systemctl restart ipfs && sleep $((12 + RANDOM % 20))
|
||||||
|
|
||||||
#### timebar DESYNC
|
|
||||||
sleep $((12 + RANDOM % 5))
|
|
||||||
|
|
||||||
#### Refresh & publish MEDIAKEYs
|
#### Refresh & publish MEDIAKEYs
|
||||||
$MY_PATH/zen/ipns_TAG_refresh.sh
|
$MY_PATH/zen/ipns_TAG_refresh.sh
|
||||||
|
|
Loading…
Reference in New Issue