systemd: update for network-online.target for systemd >= 200 (rh #787314)

systemd's new network-online target abstracts the "wait until
networking is up" stuff, and NM-wait-online implements that
functionality.  Thus NM-wait-online should be ordered before
(and thus be a dependency of) network-online.
This commit is contained in:
Dan Williams
2013-05-15 07:37:25 -05:00
parent 06a415d9ea
commit db3ad9bc90
5 changed files with 24 additions and 4 deletions

View File

@@ -3,11 +3,11 @@ Description=Network Manager Wait Online
Requisite=NetworkManager.service
After=NetworkManager.service
Wants=network.target
Before=network.target
Before=network.target network-online.target
[Service]
Type=oneshot
ExecStart=@bindir@/nm-online -q --timeout=30
[Install]
WantedBy=network.target
WantedBy=multi-user.target