Merge pull request #8040 from ipfs/fix/7269

fix: set systemd startup timeout to infinity
This commit is contained in:
Steven Allen 2021-04-22 11:38:53 -07:00 committed by GitHub
commit a4e14fb94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,13 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#don't use swap
MemorySwapMax=0
# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
# badger is recovering) and migrations can delay startup.
#
# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
# systemd dependencies deeper into go-ipfs.
TimeoutStartSec=infinity
Type=notify
User=ipfs
Group=ipfs

View File

@ -29,6 +29,13 @@ After=network.target
#don't use swap
MemorySwapMax=0
# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
# badger is recovering) and migrations can delay startup.
#
# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
# systemd dependencies deeper into go-ipfs.
TimeoutStartSec=infinity
Type=notify
User=ipfs
Group=ipfs