unit: skip default cgroup setup if we have no hierarchy to work on
This commit is contained in:
parent
090bf7cbc4
commit
df18d8c895
|
@ -1876,6 +1876,9 @@ int unit_add_default_cgroups(Unit *u) {
|
|||
/* Adds in the default cgroups, if they weren't specified
|
||||
* otherwise. */
|
||||
|
||||
if (!u->meta.manager->cgroup_hierarchy)
|
||||
return 0;
|
||||
|
||||
if ((r = unit_add_one_default_cgroup(u, NULL)) < 0)
|
||||
return r;
|
||||
|
||||
|
|
Loading…
Reference in a new issue