chiark / gitweb /
units: make resolved pull in its own .busname unit, but only on kdbus systems
[elogind.git] / units / systemd-resolved.service.in
index 0133621..e068684 100644 (file)
@@ -10,6 +10,11 @@ Description=Network Name Resolution
 Documentation=man:systemd-resolved.service(8)
 After=systemd-networkd.service network.service
 
+# On kdbus systems we pull in the busname explicitly, because it
+# carries policy that allows the daemon to acquire its name.
+Wants=org.freedesktop.resolve1.busname
+After=org.freedesktop.resolve1.busname
+
 [Service]
 Type=notify
 Restart=always