From: Tom Gundersen <[email protected]>

It is not enough to order ourselves Before network target, we must also
make sure it is pulled in. This means that anything that needs the network
to be up before they start can order themselves After=network.target.

Reported-by: Tobias Powalowski <[email protected]>
Signed-off-by: Tom Gundersen <[email protected]>
---
 systemd/net-auto-wired.service    |    1 +
 systemd/net-auto-wireless.service |    1 +
 systemd/netcfg.service            |    1 +
 systemd/[email protected]           |    1 +
 4 files changed, 4 insertions(+)

diff --git a/systemd/net-auto-wired.service b/systemd/net-auto-wired.service
index f611a89..3c5cf62 100644
--- a/systemd/net-auto-wired.service
+++ b/systemd/net-auto-wired.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=Provides automatic netcfg wired connection
 Before=network.target
+Wants=network.target
 
 [Service]
 EnvironmentFile=/etc/conf.d/netcfg
diff --git a/systemd/net-auto-wireless.service 
b/systemd/net-auto-wireless.service
index c2ea4f8..ab57ab9 100644
--- a/systemd/net-auto-wireless.service
+++ b/systemd/net-auto-wireless.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=Provides automatic netcfg wireless connection
 Before=network.target
+Wants=network.target
 
 [Service]
 EnvironmentFile=/etc/conf.d/netcfg
diff --git a/systemd/netcfg.service b/systemd/netcfg.service
index d61d902..a4e5ddc 100644
--- a/systemd/netcfg.service
+++ b/systemd/netcfg.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=Netcfg multi-profile daemon
 Before=network.target
+Wants=network.target
 
 [Service]
 Type=oneshot
diff --git a/systemd/[email protected] b/systemd/[email protected]
index 94b0c76..ddd5ae3 100644
--- a/systemd/[email protected]
+++ b/systemd/[email protected]
@@ -1,6 +1,7 @@
 [Unit]
 Description=Netcfg networking service for profile %i
 Before=network.target
+Wants=network.target
 
 [Service]
 Type=oneshot
-- 
1.7.10

Reply via email to