Skip to content

Commit

Permalink
Merge pull request #8040 from ipfs/fix/7269
Browse files Browse the repository at this point in the history
fix: set systemd startup timeout to infinity
  • Loading branch information
Stebalien authored Apr 22, 2021
2 parents f54aead + ce617a0 commit a4e14fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions misc/systemd/ipfs-hardened.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions misc/systemd/ipfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4e14fb

Please sign in to comment.