NetworkManager/data
Beniamino Galvani 105abf27c1 Revert "dispatcher/systemd: order NetworkManager-dispatcher.service Before=NetworkManager.service"
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 acc335aad4.
2020-03-02 17:47:29 +01:00
..
84-nm-drivers.rules data: fix the ID_NET_DRIVER udev rule 2019-08-16 14:03:46 +02:00
85-nm-unmanaged.rules Revert "Do not manage Docker bridge interfaces" 2019-05-21 09:40:53 +02:00
90-nm-thunderbolt.rules all: add support for thunderbolt networking 2018-04-19 14:20:04 +02:00
meson.build build/meson: cleanup configuration_data() for paths 2019-11-22 15:59:31 +01:00
NetworkManager-dispatcher.service.in Revert "dispatcher/systemd: order NetworkManager-dispatcher.service Before=NetworkManager.service" 2020-03-02 17:47:29 +01:00
NetworkManager-ovs.conf device: add support for OpenVSwitch devices 2017-10-30 21:46:55 +01:00
NetworkManager-wait-online-systemd-pre200.service.in systemd: add Documentation to service files 2016-06-02 21:27:14 +02:00
NetworkManager-wait-online.service.in systemd: let "NetworkManager-wait-online.service" require "NetworkManager.service" 2017-11-02 15:21:42 +01:00
NetworkManager.service.in systemd: use busctl instead of dbus-send 2019-09-17 09:29:34 +02:00
org.freedesktop.NetworkManager.policy.in.in Add polkit action for Wi-Fi scans 2019-02-21 13:49:17 +01:00
server.conf.in all: fix typos in documentation and comments 2017-03-17 15:11:20 +01:00