- logger.verbose("CoreSched: setting freezer for " + cgroup + " to " + freeze)
- attempts = []
-# attempts.append("/dev/cgroup/{}/var_name".format(cgroup, var_name))
- attempts.append("/sys/fs/cgroup/freezer/libvirt/lxc/{}/{}".format(cgroup, var_name))
- attempts.append("/sys/fs/cgroup/freezer/machine.slice/machine-lxc\\x2d{}.scope/{}".format(cgroup, var_name))
+ logger.verbose("CoreSched: setting freezer for " + slicename + " to " + freeze)
+ cgroup_path = cgroups.get_cgroup_path(slicename, 'freezer')
+ cgroup = os.path.join(cgroup_path, var_name)
+