systemd: stop blocking network.target in NetworkManager-wait-online.service
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 11 Mar 2015 15:28:34 +0000 (16:28 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Fri, 30 Oct 2015 10:37:09 +0000 (11:37 +0100)
network.target is a very early boot target which basically says "I can start
opening sockets now". It has nothing to do with being connected to the internet
and is often required by early boot services as well.

Drop the unnecessary and wrong Wants=/Before=network.target to avoid dependency
cycles and boot delays.

https://bugzilla.gnome.org/show_bug.cgi?id=746039
https://launchpad.net/1430280

data/NetworkManager-wait-online.service.in

index 8b5bfbc..8c4fa67 100644 (file)
@@ -2,8 +2,7 @@
 Description=Network Manager Wait Online
 Requisite=NetworkManager.service
 After=NetworkManager.service
-Wants=network.target
-Before=network.target network-online.target
+Before=network-online.target
 
 [Service]
 Type=oneshot