mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
manager: don't place units in the 'cpu' group when run as user instance, for now
This commit is contained in:
parent
9058851be7
commit
88f0664562
@ -247,8 +247,11 @@ int manager_new(ManagerRunningAs running_as, Manager **_m) {
|
|||||||
if (!(m->environment = strv_copy(environ)))
|
if (!(m->environment = strv_copy(environ)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!(m->default_controllers = strv_new("cpu", NULL)))
|
if (running_as == MANAGER_SYSTEM) {
|
||||||
goto fail;
|
m->default_controllers = strv_new("cpu", NULL);
|
||||||
|
if (!m->default_controllers)
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(m->units = hashmap_new(string_hash_func, string_compare_func)))
|
if (!(m->units = hashmap_new(string_hash_func, string_compare_func)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user