]> git.pld-linux.org Git - packages/util-vserver.git/blobdiff - vprocunhide.init
- release 2 (by relup.sh)
[packages/util-vserver.git] / vprocunhide.init
old mode 100644 (file)
new mode 100755 (executable)
index 317f6c6..9ae34b7
@@ -4,8 +4,6 @@
 #
 # chkconfig: 2345 26 74
 # description: Makes some /proc entries visibly for vservers
-#
-# $Id$
 
 # if kernel not capable, exit early
 if [ ! -d /proc/virtual ]; then
@@ -19,17 +17,18 @@ fi
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-[ -n "$UTIL_VSERVER_VARS" ] || UTIL_VSERVER_VARS=/usr/lib/util-vserver/util-vserver-vars
+[ -n "$UTIL_VSERVER_VARS" ] || UTIL_VSERVER_VARS=/usr/share/util-vserver/util-vserver-vars
 if [ ! -e "$UTIL_VSERVER_VARS" ] ; then
        echo "Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
        exit 1
 fi
 . "$UTIL_VSERVER_VARS"
 
+$_VSERVER_INFO - FEATURE iattr || exit 0
+
 start() {
        show "Fixing vservers /proc entries visibility"
        busy
-       ${_SETATTR} -Rx --hide /proc 2>/dev/null
        $_VPROCUNHIDE
        RETVAL=$?
        deltext
@@ -42,10 +41,8 @@ start() {
 }
 
 stop() {
-       # XXX why start and stop both do --hide?
        show "Stopping vservers /proc entries visibility"
        busy
-       ${_SETATTR} -Rx --hide /proc 2>/dev/null
        rm -f /var/lock/subsys/vprocunhide
        ok
 }
This page took 0.038868 seconds and 4 git commands to generate.