re-enable init.scope/* cgroups
Costa Tsaousis committed
Aug 21, 2016 at 13:15 UTC
ade8789d59a1347017a08c1986243d2164ee5b4d
1 file changed
+1
-2
src/sys_fs_cgroup.c
+1
-2
@@ -662,7 +662,6 @@ struct cgroup *cgroup_add(const char *id) {
662
// starts with them
663
(len > 6 && !strncmp(chart_id, "user/", 6)) ||
664
(len > 11 && !strncmp(chart_id, "user.slice/", 11)) ||
665
- (len > 11 && !strncmp(chart_id, "init.scope/", 11)) ||
665
// ends with them
666
(len > 5 && !strncmp(&chart_id[len - 5], ".user", 5)) ||
667
(len > 5 && !strncmp(&chart_id[len - 5], ".swap", 5)) ||
@@ -700,7 +699,7 @@ struct cgroup *cgroup_add(const char *id) {
699
cgroup_root_count++;
700
701
// fix the name by calling the external script
703
- if(def) cgroup_get_chart_id(cg);
702
+ cgroup_get_chart_id(cg);
703
704
debug(D_CGROUP, "adding cgroup '%s' with chart id '%s'", id, chart_id);
705