bitcoind: fix module warning
Fix warning: ``` bitcoind.service is ordered after 'network-online.target' but doesn't depend on it ```
This commit is contained in:
parent
e8e5d8cf4c
commit
69b3d5f1b3
1 changed files with 14 additions and 10 deletions
|
|
@ -373,16 +373,20 @@ in {
|
||||||
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
|
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.bitcoind = {
|
systemd.services.bitcoind = rec {
|
||||||
# Use `wants` instead of `requires` so that bitcoind and all dependent services
|
wants = [
|
||||||
# are not restarted when the secrets target restarts.
|
"network-online.target"
|
||||||
# The secrets target always restarts when deploying with one of the methods
|
# Use `wants` instead of `requires` for `nix-bitcoin-secrets.target`
|
||||||
# in ./deployment.
|
# so that bitcoind and all dependent services are not restarted when
|
||||||
#
|
# the secrets target restarts.
|
||||||
# TODO-EXTERNAL: Instead of `wants`, use a future systemd dependency type
|
# The secrets target always restarts when deploying with one of the methods
|
||||||
# that propagates initial start failures but no restarts
|
# in ./deployment.
|
||||||
wants = [ "nix-bitcoin-secrets.target" ];
|
#
|
||||||
after = [ "network-online.target" "nix-bitcoin-secrets.target" ];
|
# TODO-EXTERNAL: Instead of `wants`, use a future systemd dependency type
|
||||||
|
# that propagates initial start failures but no restarts
|
||||||
|
"nix-bitcoin-secrets.target"
|
||||||
|
];
|
||||||
|
after = wants;
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
preStart = let
|
preStart = let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue