diff options
author | Chris <libcg@deksai.com> | 2010-03-09 11:04:46 -0500 |
---|---|---|
committer | Dhaval Giani <dhaval.giani@gmail.com> | 2010-03-11 13:05:30 +0100 |
commit | dcad7dc8d5e57b23948556dac22ec932d04e5e8c (patch) | |
tree | 10a229e3c66621a268dc48a736aa41f04276ab9a /scripts/init.d | |
parent | af7cc3eae42167928ff5ef568585db48d73eb93a (diff) | |
download | libcg-dcad7dc8d5e57b23948556dac22ec932d04e5e8c.tar.gz libcg-dcad7dc8d5e57b23948556dac22ec932d04e5e8c.tar.xz libcg-dcad7dc8d5e57b23948556dac22ec932d04e5e8c.zip |
init script can miss default group
If there is a directive like *:httpd before * in the cgconfig file, all
processes end up being moved into the wrong group on cgconfig startup, and
the default group is never made. This fixes it for me:
Signed-off-by: Chris Tasma <chris@deksai.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Diffstat (limited to 'scripts/init.d')
-rw-r--r-- | scripts/init.d/cgconfig.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in index 261c7d8..9cf2c9a 100644 --- a/scripts/init.d/cgconfig.in +++ b/scripts/init.d/cgconfig.in @@ -58,7 +58,7 @@ create_default_groups() { if [ -f /etc/cgrules.conf ] then read user ctrl defaultcgroup <<< \ - `grep -m1 ^\* /etc/cgrules.conf` + `grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf` if [[ -n $defaultcgroup && $defaultcgroup = "*" ]] then log_warning_msg "/etc/cgrules.conf incorrect" |