[projects/rc-scripts] Really fake network start if VSERVER_ISOLATION_NET is set.

arekm arekm at pld-linux.org
Thu Mar 20 19:13:58 CET 2014


commit 3a61868bfffe2714b8add52ef6bed3395e87bcf3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Mar 20 19:09:58 2014 +0100

    Really fake network start if VSERVER_ISOLATION_NET is set.

 rc.d/init.d/network | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 06a5012..cca3795 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -372,8 +372,9 @@ case "$1" in
 		emit pld.network-started
 		emit --no-wait started JOB=network
 		exit 0
+	else
+		start
 	fi
-	start
 	;;
   start_init)
 	network_init
@@ -394,8 +395,9 @@ case "$1" in
 		emit pld.network-stopped
 		emit --no-wait stopped JOB=network
 		exit 0
+	else
+		stop
 	fi
-	stop
 	;;
 
   status)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/61bf3b6f9f4bbcea2e1989529b6360778a4c1ce3



More information about the pld-cvs-commit mailing list