systemd: let "NetworkManager-wait-online.service" require "NetworkManager.service"
`systemctl start network-online.target` should suffice to start "NetworkManager.service". That would work because - "network-online.target" has "Wants=NetworkManager-wait-online.service" - "NetworkManager-wait-online.service" has "Require=NetworkManager.service". But previously, "NetworkManager-wait-online.service" would just fail with missing dependency. See also https://github.com/systemd/systemd/pull/6065 which does the same for networkd's wait-online serice, and see rh#1452866 for a use-case. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1452866
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Network Manager Wait Online
|
Description=Network Manager Wait Online
|
||||||
Documentation=man:nm-online(1)
|
Documentation=man:nm-online(1)
|
||||||
Requisite=NetworkManager.service
|
Requires=NetworkManager.service
|
||||||
After=NetworkManager.service
|
After=NetworkManager.service
|
||||||
Before=network-online.target
|
Before=network-online.target
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user