projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31d74c6
)
service: add implicit dbus deps only for Type=dbus units
author
Lennart Poettering
<lennart@poettering.net>
Sat, 12 Sep 2020 13:53:24 +0000
(15:53 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 14 Sep 2020 09:07:30 +0000
(11:07 +0200)
We want to be able to use BusName= in services that run during early boot
already, and thus don't synthesize deps on dbus there. Instead add them
when Type=dbus is set, because in that case we actually really need
D-Bus support.
Fixes: #17037
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index ad6c2d4ddefb70d60cb30df9735dbaefb37f07da..62218293f9ade545fb65eb1851cdf8f950274973 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-684,7
+684,7
@@
static int service_setup_bus_name(Service *s) {
assert(s);
- if (
!s->bus_name
)
+ if (
s->type != SERVICE_DBUS
)
return 0;
r = unit_add_dependency_by_name(UNIT(s), UNIT_REQUIRES, SPECIAL_DBUS_SOCKET, true, UNIT_DEPENDENCY_FILE);