commit 267f6bfe0ed8a1f6f263fdb7bfd69dcfa81d747a
Author: Elan Ruusamäe <[email protected]>
Date: Tue Jun 10 09:56:07 2014 +0300
netfs: respect VSERVER_ISOLATION_NET here as well
rc.d/init.d/netfs | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index ef869e0..ab00e6d 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -173,21 +173,33 @@ RETVAL=0
# See how we were called.
case "$1" in
start)
+ if is_yes "$VSERVER_ISOLATION_NET"; then
+ exit 0
+ fi
start
;;
stop)
+ if is_yes "$VSERVER_ISOLATION_NET"; then
+ exit 0
+ fi
stop
;;
- status)
- status
- ;;
restart)
+ if is_yes "$VSERVER_ISOLATION_NET"; then
+ exit 0
+ fi
stop
start
;;
reload)
+ if is_yes "$VSERVER_ISOLATION_NET"; then
+ exit 0
+ fi
start
;;
+ status)
+ status
+ ;;
*)
msg_usage "$0 {start|stop|restart|reload|status}"
exit 3
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/267f6bfe0ed8a1f6f263fdb7bfd69dcfa81d747a
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit