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/241-7_deb10u2+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1468ecd46fa197464fe069b9ea89adce48c05b2;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 38a7f269..16f1d9d9 100644 --- a/units/systemd-logind.service.in +++ b/units/systemd-logind.service.in @@ -14,6 +14,7 @@ Documentation=https://www.freedesktop.org/wiki/Software/systemd/logind Documentation=https://www.freedesktop.org/wiki/Software/systemd/multiseat Wants=user.slice After=nss-user-lookup.target user.slice +ConditionPathExists=/lib/systemd/system/dbus.service # Ask for the dbus socket. Wants=dbus.socket