]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: add interaction with nss-lookup.target obs-knot-resolver-bs4hbr/deployments/1898
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 20 Oct 2021 09:10:47 +0000 (11:10 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 20 Oct 2021 09:10:47 +0000 (11:10 +0200)
The point is to allow other services wait for DNS availability.
Of course, kresd may not be the DNS provider for this machine,
but it seems reasonable to still do this by default.

systemd/kresd@.service.in

index f43fb77fb0ced544648da53234da7105c9890e8f..adb303adb94ee6f93b19a5af24d4d79070a652b5 100644 (file)
@@ -7,6 +7,8 @@ Wants=kres-cache-gc.service
 Before=kres-cache-gc.service
 Wants=network-online.target
 After=network-online.target
+Before=nss-lookup.target
+Wants=nss-lookup.target
 
 [Service]
 Type=notify