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>
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"