]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
netfs: respect VSERVER_ISOLATION_NET here as well
authorElan Ruusamäe <glen@delfi.ee>
Tue, 10 Jun 2014 06:56:07 +0000 (09:56 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 10 Jun 2014 06:56:07 +0000 (09:56 +0300)
rc.d/init.d/netfs

index ef869e05f551ed648c766c808c67f734c4fef13a..ab00e6dda4ccd81b0d67cc021abf703a613a5501 100755 (executable)
@@ -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
This page took 0.129134 seconds and 4 git commands to generate.