From: Martin Pitt Date: Mon, 9 Feb 2015 09:53:43 +0000 (+0100) Subject: Only start logind if dbus is installed X-Git-Tag: archive/raspbian/247.3-7+rpi1+deb11u2^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=360e67dea91610a214b82600e17d49cde192aa64;p=systemd.git Only start logind if dbus is installed logind fails to start in environments without dbus, such as LXC containers or servers. Add a startup condition to avoid the very noisy startup failure. Part of #772700 Gbp-Pq: Topic debian Gbp-Pq: Name Only-start-logind-if-dbus-is-installed.patch --- diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in index f131b60d..952a07c8 100644 --- a/units/systemd-logind.service.in +++ b/units/systemd-logind.service.in @@ -16,6 +16,7 @@ Documentation=man:org.freedesktop.login1(5) Wants=user.slice modprobe@drm.service After=nss-user-lookup.target user.slice modprobe@drm.service +ConditionPathExists=/lib/systemd/system/dbus.service # Ask for the dbus socket. Wants=dbus.socket