1
0
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:
Lennart Poettering 2012-01-18 15:41:21 +01:00
parent 9058851be7
commit 88f0664562

View File

@ -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;