From b62ca34f01fcfca02e644d637d491036ad0a9494 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 9 Feb 2015 10:53:43 +0100 Subject: [PATCH] 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 --- units/systemd-logind.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in index c6f5b81c..705873d2 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 -- 2.30.2