]> git.pld-linux.org Git - packages/util-vserver.git/commitdiff
- pre check if kernel vserver capable to avoid flood of errors on console
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 20 Jul 2005 13:44:31 +0000 (13:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    vprocunhide.init -> 1.3

vprocunhide.init

index 3549da2a32b186342f960cfec67194845a75a839..639d0c5ddcdecf3e8c61006777a942e30b92725e 100644 (file)
@@ -17,6 +17,12 @@ fi
 
 case "$1" in
     start)
+       if [ ! -d /proc/virtual ]; then
+           show "Fixing vservers /proc entries visibility. kernel not capable"
+           fail
+           exit 1
+       fi
+
        show "Fixing vservers /proc entries visibility"
        busy
        $_VPROCUNHIDE
This page took 0.209839 seconds and 4 git commands to generate.