#
# chkconfig: 2345 26 74
# description: Makes some /proc entries visibly for vservers
+#
+# $Id$
# if kernel not capable, exit early
if [ ! -d /proc/virtual ]; then
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
}
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
}
case "$1" in
-start|restart|reload)
+ start|restart|reload)
start
;;
-stop)
+ stop)
stop
;;
-status)
- if [ -f /var/lock/subsys/vprocunhide ] ; then
+ status)
+ if [ -f /var/lock/subsys/vprocunhide ]; then
echo "vservers /proc entries were fixed"
else
echo "vservers /proc entries were not fixed"
fi
;;
-*)
+ *)
msg_usage "$0 {start|stop|reload|restart|status}"
exit 3
;;