|
From: SourceForge.net <no...@so...> - 2010-03-09 16:15:33
|
Bugs item #2962110, was opened at 2010-03-02 14:04 Message generated for change (Comment added) made by deksai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1043649&aid=2962110&group_id=218421 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Chris (deksai) Assigned to: Nobody/Anonymous (nobody) Summary: init script can miss default group Initial Comment: 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: diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in index 261c7d8..99608a5 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" ---------------------------------------------------------------------- >Comment By: Chris (deksai) Date: 2010-03-09 11:15 Message: Sent it to the list. ---------------------------------------------------------------------- Comment By: Dhaval Giani (dhaval_giani) Date: 2010-03-08 08:24 Message: Hi Chris, Could you please post this patch to lib...@li.... Please note it is a subscribers only list, so you will need to subscribe before posting on that list. By posting it on the list, you get wider coverage and quicker response. Thanks, Dhaval ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1043649&aid=2962110&group_id=218421 |