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:
@@ -1,6 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Network Manager Script Dispatcher Service
|
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]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=org.freedesktop.nm_dispatcher
|
BusName=org.freedesktop.nm_dispatcher
|
||||||
|
Reference in New Issue
Block a user