summaryrefslogtreecommitdiffstats
path: root/debian/extra/units/systemd-logind.service.d/dbus.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/extra/units/systemd-logind.service.d/dbus.conf')
-rw-r--r--debian/extra/units/systemd-logind.service.d/dbus.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/extra/units/systemd-logind.service.d/dbus.conf b/debian/extra/units/systemd-logind.service.d/dbus.conf
new file mode 100644
index 0000000..bd78263
--- /dev/null
+++ b/debian/extra/units/systemd-logind.service.d/dbus.conf
@@ -0,0 +1,9 @@
+# logind fails to start in minimal environments without dbus, such as LXC
+# containers or servers. Add a startup condition to avoid the very noisy
+# startup failure.
+# Consider both dbus-daemon (the reference implementation) and dbus-broker.
+# See https://bugs.debian.org/772700
+
+[Unit]
+ConditionPathExists=|/usr/bin/dbus-daemon
+ConditionPathExists=|/usr/bin/dbus-broker