reduice water levels for swarm
This commit is contained in:
parent
8333454ed9
commit
0462b11d42
|
@ -26,6 +26,9 @@ IPFSNODEID=$(ipfs --timeout=10s id -f='<id>\n')
|
||||||
## CONTROL IPFS IS RUNNING OR RESTART
|
## 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)
|
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
if [[ ! ${YOU} ]]; then
|
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
|
[[ "${USER}" == "xbian" ]] && sudo service ipfs restart || sudo systemctl restart ipfs
|
||||||
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
echo "ERROR! ipfs daemon was not running. RELAUNCHING."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue