mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 08:10:41 +03:00
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:
parent
09cd3ce5e4
commit
cdf27d9d0c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user