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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.