[PATCH 1/2] Make network.target wait until after ifup at .service

Richard Maw richard.maw at codethink.co.uk
Thu Nov 29 11:46:47 UTC 2012


Before=network.target means network.target isn't considered started
until after ifup at .service has started.

Type=oneshot means that ifup at .service is considered started after
ifup has exited.
---
 systemd-units/ifup at .service.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/systemd-units/ifup at .service.in b/systemd-units/ifup at .service.in
index 72313bb..25e8dc1 100644
--- a/systemd-units/ifup at .service.in
+++ b/systemd-units/ifup at .service.in
@@ -1,8 +1,9 @@
 [Unit]
 Description=ifup for %I
-After=local-fs.target
+Before=network.target
 
 [Service]
+Type=oneshot
 ExecStart=@rootprefix@/sbin/ifup %I
 ExecStop=@rootprefix@/sbin/ifdown %I
 RemainAfterExit=true
-- 
1.7.5.4



More information about the busybox mailing list