From 2942b8d4729c587aea3fb9fe21aa1680e9558f46 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 1 Oct 2018 14:33:17 -0700 Subject: [PATCH] add 1sec sleeps to beginning of services --- ipfsd.run | 2 ++ sync.run | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ipfsd.run b/ipfsd.run index 328a9cc..56a0aa2 100644 --- a/ipfsd.run +++ b/ipfsd.run @@ -1,5 +1,7 @@ #!/bin/bash +sleep 1 # prevent cpu spike on looping + export IPFS="/usr/local/bin/ipfs" export HOME="/home/ipfs" diff --git a/sync.run b/sync.run index cb5b2d2..23538c6 100644 --- a/sync.run +++ b/sync.run @@ -17,6 +17,8 @@ # Make a full sync of an Ubuntu mirror. # This currently requires more than 1TB of storage space and takes a long time. +sleep 1 # prevent cpu spike on looping + chown ipfs:ipfs /mirror chpst -u ipfs /bin/bash << '__EOF__'