Skip to content

systemd: set no default dependencies

Sinan Kaya requested to merge franksinankaya/dbus:frkaya/deps into master

https://github.com/systemd/systemd/issues/23763

cloning to here:

We have a critical networking related early boot service that uses dbus and have a dependency placed on dbus.socket, During performance analysis, we noticed that our service is starting late due to default dependencies like sysinit.target injected into our service via dbus.socket. Therefore, we are missing our requirements.

before:
-dbus.socket @3.417s
-sysinit.target @3.415s
-cryptsetup.target @3.414s
-systemd-ask-password-wall.path @358ms
--.mount @339ms--.slice @339ms

We are able to resolve this issue if we inject DefaultDependencies=No into dbus.socket similar to all other socket entries started during boot.

after:
`-sys-devices-platform-xyz @742ms

Now, we are questioning the correctness of this approach and if this is something we could contribute upstream.

Edited by Sinan Kaya

Merge request reports