dispatcher/systemd: order NetworkManager-dispatcher.service Before=NetworkManager.service

During shutdown, systemd should first stop NetworkManager and then
the dispatcher service. Note that dispatcher service is D-Bus activated,
so the two services don't Want/Require each other. But the ordering
still matters.
This commit is contained in:
Thomas Haller 2019-05-24 09:16:36 +02:00
parent 947f979f26
commit acc335aad4

View File

@ -1,6 +1,12 @@
[Unit]
Description=Network Manager Script Dispatcher Service
# Order the dispatcher before NetworkManager. While dispatcher
# is D-Bus activate (and not intended to be explicitly wanted by
# another service/target), the ordering dependency matters during
# shutdown. We want first NetworkManager to be stopped.
Before=NetworkManager.service
[Service]
Type=dbus
BusName=org.freedesktop.nm_dispatcher