* Chris <[email protected]> [2010-03-09 11:04:46]:
> I had sent this to the sourceforge bug tracker, but Dhaval asked me to post it
> here instead:
>
>
> If there is a directive like *:httpd before * in the cgconfig file, all
^^^^^^
Do you mean in the cgrules.conf file?
Do you have an example we could add to the test bucket?
> 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"
>
Looks good to me
Acked-by: Balbir Singh <[email protected]>
--
Three Cheers,
Balbir
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel