def setup(config):
    Cgroup.create(config, CONTROLLER, PARENT_CGNAME)
    Cgroup.create(config, CONTROLLER,
                  os.path.join(PARENT_CGNAME, CHILD_CGNAME))

    Cgroup.set_cgrules_conf(config, CGRULE, append=False)
    cg.start_cgrules(config)
def setup(config):
    Cgroup.create(config, CONTROLLER, CGNAME)

    Cgroup.set_cgrules_conf(config, CGRULE, append=False)
    cg.start_cgrules(config)