3 # vprocunhide sets vserver related attributes for /proc
5 # chkconfig: 2345 26 74
6 # description: Makes some /proc entries visibly for vservers
9 # Provides: vprocunhide
10 # Required-Start: $remote_fs $syslog $time
11 # Required-Stop: $remote_fs $syslog $time
12 # Default-Start: 2 3 4 5
14 # Short-Description: vprocunhide sets vserver related attributes for /proc
15 # Description: vprocunhide sets vserver related attributes for /proc.
18 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
19 test -e "$UTIL_VSERVER_VARS" || {
20 echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
23 . "$UTIL_VSERVER_VARS"
25 $_VSERVER_INFO - FEATURE iattr || exit 0
28 . "$_LIB_VSERVER_INIT_FUNCTIONS"
33 _beginResult $"Fixing /proc entries visibility"
37 test "$retval" -ne 0 || touch "$lockfile"
53 start|stop|restart) $1;;
56 test -f $lockfile && restart || :
59 test -f $lockfile && {
60 echo $"/proc entries were fixed"
63 echo $"/proc entries are not fixed"
67 echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"