From dcad7dc8d5e57b23948556dac22ec932d04e5e8c Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 9 Mar 2010 11:04:46 -0500 Subject: 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 Acked-by: Balbir Singh Signed-off-by: Dhaval Giani --- scripts/init.d/cgconfig.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit