mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
Merge pull request #8040 from ipfs/fix/7269
fix: set systemd startup timeout to infinity
This commit is contained in:
commit
a4e14fb94e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user