mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
105abf27c1
The 'Before' dependency between NM-dispatcher and NM causes a deadlock
when stopping the NM service. When terminating, NM wants to D-Bus
activate NM-dispatcher to synchronously handle pre-down events; but
NM-dispatcher start is ordered after NM shutdown due to the following
behavior described in systemd.unit(5) man page:
Given two units with any ordering dependency between them, if one
unit is shut down and the other is started up, the shutdown is
ordered before the start-up. It doesn't matter if the ordering
dependency is After= or Before=, in this case. It also doesn't
matter which of the two is shut down, as long as one is shut down
and the other is started up; the shutdown is ordered before the
start-up in all cases.
So, NM is waiting NM-dispatcher to start and NM-dispatcher is queued
by systemd, waiting that NM is stopped. The result is a 90 seconds
delay, after which systemd kills NM and continues.
The dependency was added so that during shutdown NM-dispatcher would
be stopped after NM. I don't think it worked as expected because
NM-dispatcher is not supposed to be active most of the times, and so
it doesn't need a dependency that delays its stop after NM.
This reverts commit
|
||
---|---|---|
.. | ||
84-nm-drivers.rules | ||
85-nm-unmanaged.rules | ||
90-nm-thunderbolt.rules | ||
meson.build | ||
NetworkManager-dispatcher.service.in | ||
NetworkManager-ovs.conf | ||
NetworkManager-wait-online-systemd-pre200.service.in | ||
NetworkManager-wait-online.service.in | ||
NetworkManager.service.in | ||
org.freedesktop.NetworkManager.policy.in.in | ||
server.conf.in |