projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd9d3d
)
Only start logind if dbus is installed
author
Martin Pitt
<martin.pitt@ubuntu.com>
Mon, 9 Feb 2015 09:53:43 +0000
(10:53 +0100)
committer
Peter Michael Green
<plugwash@raspbian.org>
Thu, 20 Sep 2018 20:22:45 +0000
(21:22 +0100)
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
patch
|
blob
|
history
diff --git
a/units/systemd-logind.service.in
b/units/systemd-logind.service.in
index 5e090bcf238bd4d47fa579e07f827794528b840b..9703674b56c620a8aa67c01abb87344143b2698e 100644
(file)
--- 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