summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-14 17:01:43 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-03-05 00:26:48 -0500
commitdc76cad2163e39553af52c5a56fe1f8419ba17ab (patch)
tree034b7967ed2e3909b9f2b3b0a09a16919fd0d5a0 /units
parent9d713de8161428deda10e857b43b6e8bcc273abe (diff)
units: systemd-logind fails hard without dbus
That is, without --enable-kdbus and kdbus running. With --enable-kdbus things are more complicated, because dbus might be necessary, if kdbus is missing at runtime. If it is not necessary, the socket will be started, which is not imporant, but not the service. (cherry picked from commit 8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7)
Diffstat (limited to 'units')
-rw-r--r--units/systemd-logind.service.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index 31b5cd011..e0b1b59df 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -13,6 +13,11 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat
Wants=user.slice
After=nss-user-lookup.target user.slice
+# Ask for the dbus socket. If running over kdbus, the socket will
+# not be actually used.
+Wants=dbus.socket
+After=dbus.socket
+
[Service]
ExecStart=@rootlibexecdir@/systemd-logind
Restart=always