projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a6603d
)
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
Luca Boccassi
<bluca@debian.org>
Sun, 18 Jun 2023 14:55:54 +0000
(15:55 +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 f131b60d4fbc490fdd145526a96086ce5a297446..952a07c87b9579c2cd5fbde37f9ee042336751d1 100644
(file)
--- 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