add 1sec sleeps to beginning of services

This commit is contained in:
Jeffrey Paul 2018-10-01 14:33:17 -07:00
parent 43719766d5
commit 2942b8d472
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
sleep 1 # prevent cpu spike on looping
export IPFS="/usr/local/bin/ipfs"
export HOME="/home/ipfs"

View File

@ -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__'