NetworkManager/data/NetworkManager-wait-online.service.in
Bill Nottingham 0ce4b6b412 systemd: tweak NM-wait-online.service
1) Don't require NM, but run after it. This allows this service
to be installed without bringing up NetworkManager. Add -x so that
it exits if NM isn't running.

2) Install as a want of network.target, instead of multi-user.target.
This allows us to skip it if nothing requires network.target or the
legacy $network SysV capability.
2011-05-10 16:34:11 -05:00

12 lines
226 B
SYSTEMD

[Unit]
Description=Network Manager Wait Online
After=NetworkManager.service
Wants=network.target
Before=network.target
[Service]
Type=oneshot
ExecStart=@bindir@/nm-online -q -x --timeout=30
[Install]
WantedBy=network.target