]> git.pld-linux.org Git - packages/libcgroup.git/blobdiff - cgconfig.init
- initscript uses ps, add procps dep
[packages/libcgroup.git] / cgconfig.init
index d1c671647222ca6bc2e6a9dcbfeed2b27f922c09..53381be1a522342feee1a86c70db532908651973 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # cgconfig     Control Groups Configuration Startup
-# chkconfig:   5 95
+# chkconfig:   2345 05 95
 # description: This script runs the cgconfigparser utility to parse and setup \
 #              the control group filesystem. It uses /etc/cgconfig.conf \
 #              and parses the configuration specified in there.
@@ -30,7 +30,7 @@ create_default_groups() {
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
-       controllers=`lssubsys 2>/dev/null | awk '{ if (v) v=v","$0 ; else v=$0 } END { printf v }'`
+       controllers=$(lssubsys 2>/dev/null | awk '{ if (v) v=v","$0 ; else v=$0 } END { printf "%s", v }')
 
        #
        # Create the default group, ignore errors when the default group
This page took 0.070879 seconds and 4 git commands to generate.