From cdf27d9d0cf624832a904e312b533164969bd73d Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 16 Mar 2021 12:45:23 +0100 Subject: [PATCH] bitcoind: improve service timeouts - Improve readability by using minutes - set `TimeoutStopSec` like in bitcoin/contrib/init/bitcoind.service. Stopping bitcoind can exceed the default timeout during IBD. --- modules/bitcoind.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index ad804c3..ed43c31 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -351,7 +351,8 @@ in { NotifyAccess = "all"; User = cfg.user; Group = cfg.group; - TimeoutStartSec = 300; + TimeoutStartSec = "5min"; + TimeoutStopSec = "10min"; ExecStart = "${cfg.package}/bin/bitcoind -datadir='${cfg.dataDir}'"; Restart = "on-failure"; UMask = mkIf cfg.dataDirReadableByGroup "0027";