3 # cgconfig Control Groups Configuration Startup
4 # chkconfig: 2345 01 99
5 # description: This script runs the cgconfigparser utility to parse and setup \
6 # the control group filesystem. It uses /etc/cgconfig.conf \
7 # and parses the configuration specified in there.
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 [ -f /etc/sysconfig/cgconfig ] && . /etc/sysconfig/cgconfig
16 # Check if the service is already running?
17 if [ -f /var/lock/subsys/cgconfig ]; then
18 msg_already_running "cgconfig"
21 if [ ! -s /etc/cgconfig.conf ]; then
22 nls "/etc/cgconfig.conf is not configured"
26 msg_starting "cgconfig"; busy
28 out=$(/sbin/cgconfigparser -l /etc/cgconfig.conf 2>&1)
30 if [ $RETVAL -ne 0 ]; then
32 [ "$out" ] && echo >&2 "$out"
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cgconfig
42 if [ ! -f /var/lock/subsys/cgconfig ]; then
43 msg_not_running "cgconfig"
47 msg_stopping "cgconfig"
50 rm -f /var/lock/subsys/cgconfig
55 if [ ! -f /var/lock/subsys/cgconfig ]; then
56 msg_not_running "cgconfig"
84 if [ -f /var/lock/subsys/cgconfig ] ; then
93 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"