From 88f06645623467f9c8db88afca64557d62e38c61 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Jan 2012 15:41:21 +0100 Subject: [PATCH] manager: don't place units in the 'cpu' group when run as user instance, for now --- src/manager.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/manager.c b/src/manager.c index bab16627..19e54417 100644 --- a/src/manager.c +++ b/src/manager.c @@ -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; -- 2.39.5