summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-04-21 18:21:17 +0900
committerLennart Poettering <lennart@poettering.net>2017-04-21 11:21:17 +0200
commit3e06055500755053050620a45236ef606507e1bd (patch)
treeb2abb729da5e7fa5fafa4d5bcc4957370ea586b1
parentc8b21184052cc445a45f797ec11dae5e6a1d2b54 (diff)
downloadsystemd-3e06055500755053050620a45236ef606507e1bd.tar.gz
systemd-3e06055500755053050620a45236ef606507e1bd.tar.bz2
systemd-3e06055500755053050620a45236ef606507e1bd.zip
units: systemd-resolved should start before network-online.target and nss-lookup.target (#5691)
systemd-resolved provides 1. local API via NSS and D-Bus 2. kind of a local "DNS proxy" through its stub listener The 1st item should be started before nss-lookup.target. The 2nd item should be started before network-online.target, because if the networking works in general, then DNS (and DNS proxy) should too. Fixes #5650
-rw-r--r--units/systemd-resolved.service.m4.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/systemd-resolved.service.m4.in b/units/systemd-resolved.service.m4.in
index 70491e0751..6c22893ed7 100644
--- a/units/systemd-resolved.service.m4.in
+++ b/units/systemd-resolved.service.m4.in
@@ -12,6 +12,8 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/resolved
Documentation=http://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
Documentation=http://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
After=systemd-networkd.service network.target
+Before=network-online.target nss-lookup.target
+Wants=nss-lookup.target
# On kdbus systems we pull in the busname explicitly, because it
# carries policy that allows the daemon to acquire its name.