diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-14 17:01:43 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-14 19:00:32 -0500 |
commit | 8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7 (patch) | |
tree | 0f5971362dd97c0e24f4af49b2ac81caa9925ede | |
parent | 8a8332f77e61d41f3bb28b8f929ed41e0ffaf721 (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.
-rw-r--r-- | units/systemd-logind.service.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in index 90196681fe..c6cbd1c8df 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 |