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
1 changed files with 5 additions and 2 deletions

View File

@ -247,8 +247,11 @@ int manager_new(ManagerRunningAs running_as, Manager **_m) {
if (!(m->environment = strv_copy(environ)))
goto fail;
if (!(m->default_controllers = strv_new("cpu", NULL)))
goto fail;
if (running_as == MANAGER_SYSTEM) {
m->default_controllers = strv_new("cpu", NULL);
if (!m->default_controllers)
goto fail;
}
if (!(m->units = hashmap_new(string_hash_func, string_compare_func)))
goto fail;