From 821646e7a4b1fccf392379ab015ac432df5881ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Lavi=C3=B3s=20Gomis?= Date: Fri, 2 Feb 2018 15:51:38 +0100 Subject: [PATCH] Update systemd service to pull nss-lookup.target in. According to systemd.special(7), nss-lookup.target is a Special Passive System Unit. This means that services depending on its functionality should order themselves after the target with an After= type dependency, but should not have a Wants= dependency for them. Therefore, nss-lookup.target should be pulled in by the providing services instead, or the consumer services will never be able to order themselves after the providing services since nss-lookup.target would not be pulled in at any point in the boot process. dnscrypt-proxy.service provides name lookup functionality, and has a Before= dependency on nss-lookup.target. However, it should have a Wants= dependency on it as well in order to indicate readiness of name lookup functionality. --- systemd/dnscrypt-proxy.service | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/dnscrypt-proxy.service b/systemd/dnscrypt-proxy.service index a52f6855..43c0e22f 100644 --- a/systemd/dnscrypt-proxy.service +++ b/systemd/dnscrypt-proxy.service @@ -4,6 +4,7 @@ Documentation=man:dnscrypt-proxy(8) Requires=dnscrypt-proxy.socket After=network.target Before=nss-lookup.target +Wants=nss-lookup.target [Install] Also=dnscrypt-proxy.socket