mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 16:20:14 +01:00
systemd: fix NetworkManager-wait-online.service to wait for link up (rh #710502)
Since commit 0ce4b6b412
NetworkManager-wait-online.service quits immediately if there is no link yet.
Fix it by removing the '-x' option.
But if we do just that, NM-w-o would add a useless 30 seconds delay in the
case when NM is not running at all.
Solve this by adding a Requisite= dependency on NM.
https://bugzilla.redhat.com/show_bug.cgi?id=710502
This commit is contained in:
parent
502548b6ca
commit
ffbb7df4b8
1 changed files with 2 additions and 1 deletions
|
|
@ -1,12 +1,13 @@
|
|||
[Unit]
|
||||
Description=Network Manager Wait Online
|
||||
Requisite=NetworkManager.service
|
||||
After=NetworkManager.service
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@bindir@/nm-online -q -x --timeout=30
|
||||
ExecStart=@bindir@/nm-online -q --timeout=30
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue