@cryptotaxi247 / kubo / commits / ce617a03e

fix: set systemd startup timeout to infinity

fixes #7369 fixes #8034

Steven Allen committed Mar 31, 2021 at 16:18 UTC ce617a03e26c5d5ef0314e1d51d1a30b272f4bff
2 files changed +14
misc/systemd/ipfs-hardened.service
+7
@@ -58,6 +58,13 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVICE
58 #don't use swap
59 MemorySwapMax=0
60
61 +# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
62 +# badger is recovering) and migrations can delay startup.
63 +#
64 +# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
65 +# systemd dependencies deeper into go-ipfs.
66 +TimeoutStartSec=infinity
67 +
68 Type=notify
69 User=ipfs
70 Group=ipfs
misc/systemd/ipfs.service
+7
@@ -29,6 +29,13 @@ After=network.target
29 #don't use swap
30 MemorySwapMax=0
31
32 +# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
33 +# badger is recovering) and migrations can delay startup.
34 +#
35 +# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
36 +# systemd dependencies deeper into go-ipfs.
37 +TimeoutStartSec=infinity
38 +
39 Type=notify
40 User=ipfs
41 Group=ipfs