Getting error when starting cgconfig in RHEL

Solution Verified - Updated -

Issue

  • We are experiencing the following problem:

    # service cgconfig start
    Starting cgconfig service: /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Failed to remove a non-empty group
    Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d      [FAILED]
    

    Our /etc/cgconfig.conf contains:

    mount {
            cpuset  = /cgroup/cpuset;
            cpu     = /cgroup/cpu;
            cpuacct = /cgroup/cpuacct;
            memory  = /cgroup/memory;
            devices = /cgroup/devices;
            freezer = /cgroup/freezer;
            net_cls = /cgroup/net_cls;
            blkio   = /cgroup/blkio;
    }
    group nonpriv {
            cpu {
                    cpu.shares="250";
            }
            cpuacct {
                    cpuacct.usage="0";
            }
            memory {
                    memory.limit_in_bytes= 15G;
                    memory.memsw.limit_in_bytes = 1G;
            }
    }
    

Environment

  • Red Hat Enterprise Linux 6 & 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content