From 0ce4b6b4128f19177072d1bb5f5c3a87783256ba Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 10 May 2011 16:34:11 -0500 Subject: [PATCH] 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. --- data/NetworkManager-wait-online.service.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/NetworkManager-wait-online.service.in b/data/NetworkManager-wait-online.service.in index 1a43d1744..0772568ff 100644 --- a/data/NetworkManager-wait-online.service.in +++ b/data/NetworkManager-wait-online.service.in @@ -1,12 +1,12 @@ [Unit] Description=Network Manager Wait Online -Requires=NetworkManager.service +After=NetworkManager.service Wants=network.target Before=network.target [Service] Type=oneshot -ExecStart=@bindir@/nm-online -q --timeout=30 +ExecStart=@bindir@/nm-online -q -x --timeout=30 [Install] -WantedBy=multi-user.target +WantedBy=network.target