mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-02 22:38:01 +00:00
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:
parent
947f979f26
commit
acc335aad4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue