3 # vprocunhide sets vserver related attributes for /proc
5 # chkconfig: 2345 26 74
6 # description: Makes some /proc entries visibly for vservers
8 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
9 test -e "$UTIL_VSERVER_VARS" || {
10 echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
13 . "$UTIL_VSERVER_VARS"
15 $_VSERVER_INFO - FEATURE iattr || exit 0
18 . "$_LIB_VSERVER_INIT_FUNCTIONS"
23 _beginResult $"Fixing /proc entries visibility"
27 test "$retval" -ne 0 || touch "$lockfile"
43 start|stop|restart) $1;;
46 test -f $lockfile && restart || :
49 test -f $lockfile && {
50 echo $"/proc entries were fixed"
53 echo $"/proc entries are not fixed"
57 echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"