nixos/unbond: unbound should be required for nss-lookup.target
Other units depend on nss-lookup.target and expect the DNS resolution to work once that target is reached. The previous version `wants=nss-lookup.target` made this unit require the nss-lookup.target to be reached before this was started. Another change that we can probalby do is drop the before relationship with the nss-lookup.target. That might just be implied with the current version.
This commit is contained in:
parent
5c16c31e06
commit
5903ea5395
1 changed files with 1 additions and 2 deletions
|
@ -154,8 +154,7 @@ in
|
||||||
description = "Unbound recursive Domain Name Server";
|
description = "Unbound recursive Domain Name Server";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
before = [ "nss-lookup.target" ];
|
before = [ "nss-lookup.target" ];
|
||||||
wants = [ "nss-lookup.target" ];
|
wantedBy = [ "multi-user.target" "nss-lookup.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
|
|
||||||
preStart = lib.mkIf cfg.enableRootTrustAnchor ''
|
preStart = lib.mkIf cfg.enableRootTrustAnchor ''
|
||||||
${cfg.package}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!"
|
${cfg.package}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!"
|
||||||
|
|
Loading…
Reference in a new issue