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; aborting...">&2
13 . "$UTIL_VSERVER_VARS"
15 # Source function library.
16 . /etc/rc.d/init.d/functions
18 lockfile=/var/lock/subsys/vprocunhide
22 echo -n $"Fixing /proc entries visibility..."
31 test "$rc" -ne 0 || touch "$lockfile"
47 start|stop|restart) $1;;
50 test -f $lockfile && restart || :
53 test -f $lockfile && {
54 echo $"/proc entries were fixed"
57 echo $"/proc entries are not fixed"
61 echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"