3 # vprocunhide sets vserver related attributes for /proc
5 # chkconfig: 2345 26 74
6 # description: Makes some /proc entries visibly for vservers
8 # Source function library.
9 . /etc/rc.d/init.d/functions
11 [ -n "$UTIL_VSERVER_VARS" ] || $UTIL_VSERVER_VARS=/usr/lib/util-vserver/util-vserver-vars
12 if [ ! -e "$UTIL_VSERVER_VARS" ] ; then
13 echo "Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
16 . "$UTIL_VSERVER_VARS"
20 show "Fixing vservers /proc entries visibility"
30 [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/vprocunhide
33 show "Stopping vservers /proc entries visibility"
35 rm -f /var/lock/subsys/vprocunhide
43 if [ -f /var/lock/subsys/vprocunhide ] ; then
44 echo "vservers /proc entries were fixed"
46 echo "vservers /proc entries are not fixed"
50 echo "Usage: $0 {start|stop|reload|restart|status}"
57 # This must be last line !
58 # vi:syntax=sh:tw=78:ts=8:sw=4