Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame^] | 1 | From 0690452b863286e524d2037427816b7850301f93 Mon Sep 17 00:00:00 2001 |
| 2 | From: Haiqing Bai <Haiqing.Bai@windriver.com> |
| 3 | Date: Tue, 6 Sep 2016 09:27:38 +0800 |
| 4 | Subject: [PATCH] networkmanager: fixed issues of |
| 5 | NetworkManager-wait-online.service.in. |
| 6 | |
| 7 | Remove network.target in "Before" to avoid circle dependency. |
| 8 | Wants=network.target |
| 9 | Before=network.target network-online.target |
| 10 | |
| 11 | Correct the "WantedBy" to network-online.target. |
| 12 | |
| 13 | Upstream-status: Pending |
| 14 | |
| 15 | Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> |
| 16 | --- |
| 17 | data/NetworkManager-wait-online.service.in | 7 ++++--- |
| 18 | 1 file changed, 4 insertions(+), 3 deletions(-) |
| 19 | |
| 20 | diff --git a/data/NetworkManager-wait-online.service.in b/data/NetworkManager-wait-online.service.in |
| 21 | index 6ad6942..1753d20 100644 |
| 22 | --- a/data/NetworkManager-wait-online.service.in |
| 23 | +++ b/data/NetworkManager-wait-online.service.in |
| 24 | @@ -1,13 +1,14 @@ |
| 25 | [Unit] |
| 26 | Description=Network Manager Wait Online |
| 27 | +Documentation=man:nm-online(1) |
| 28 | Requisite=NetworkManager.service |
| 29 | After=NetworkManager.service |
| 30 | -Wants=network.target |
| 31 | -Before=network.target network-online.target |
| 32 | +Before=network-online.target |
| 33 | |
| 34 | [Service] |
| 35 | Type=oneshot |
| 36 | ExecStart=@bindir@/nm-online -s -q --timeout=30 |
| 37 | +RemainAfterExit=yes |
| 38 | |
| 39 | [Install] |
| 40 | -WantedBy=multi-user.target |
| 41 | +WantedBy=network-online.target |
| 42 | -- |
| 43 | 1.9.1 |
| 44 | |