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.
This commit is contained in:
Erik Arvstedt 2021-03-16 12:45:23 +01:00
parent 09cd3ce5e4
commit cdf27d9d0c
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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";