chiark / gitweb /
logind: parse configuration file
[elogind.git] / src / logind-user.c
index 4335bf646203cd8af4793c300476d0198701a45b..3076ed15738fb68ca5b37438315151406d1722b1 100644 (file)
@@ -246,6 +246,10 @@ static int user_create_cgroup(User *u) {
         u->cgroup_path = p;
 
         STRV_FOREACH(k, u->manager->controllers) {
+
+                if (strv_contains(u->manager->reset_controllers, *k))
+                        continue;
+
                 r = cg_create(*k, p);
                 if (r < 0)
                         log_warning("Failed to create cgroup %s:%s: %s", *k, p, strerror(-r));