From 0462b11d424699a1077a83b96f6e37eaa23fcc55 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 11 Aug 2021 05:27:37 +0200 Subject: [PATCH] reduice water levels for swarm --- cron_MINUTE.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 52df6ab..75947bf 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -26,6 +26,9 @@ IPFSNODEID=$(ipfs --timeout=10s id -f='\n') ## CONTROL IPFS IS RUNNING OR RESTART YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) if [[ ! ${YOU} ]]; then + # reduice water levels for swarm + ipfs config --json Swarm.ConnMgr.LowWater 200 + ipfs config --json Swarm.ConnMgr.HighWater 400 [[ "${USER}" == "xbian" ]] && sudo service ipfs restart || sudo systemctl restart ipfs echo "ERROR! ipfs daemon was not running. RELAUNCHING." exit 1