Skip to content

Commit

Permalink
core: don't use the unified hierarchy for the systemd cgroup yet
Browse files Browse the repository at this point in the history
Too many things don't get along with the unified hierarchy yet:

 * opencontainers/runc#1175
 * moby/moby#28109
 * lxc/lxc#1280

So revert the default to the legacy hierarchy for now. Developers of the above
software can opt into the unified hierarchy with
"systemd.legacy_systemd_cgroup_controller=0".
  • Loading branch information
martinpitt committed Nov 9, 2016
1 parent 7debb05 commit e3d9d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic/cgroup-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,10 +2423,10 @@ bool cg_is_unified_systemd_controller_wanted(void) {

r = get_proc_cmdline_key("systemd.legacy_systemd_cgroup_controller=", &value);
if (r < 0)
return true;
return false;

if (r == 0)
wanted = true;
wanted = false;
else
wanted = parse_boolean(value) <= 0;
}
Expand Down

0 comments on commit e3d9d7d

Please sign in to comment.