chiark / gitweb /
cgroup: downgrade error message when we cannot remove a cgroup to debug
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 00:01:29 +0000 (02:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 21:41:03 +0000 (23:41 +0200)
Some units set KillMode=none to survive the initrd→rootfs transition. We
cannot remove their cgroups, but that shouldn't really be considered an
issue, so let's downgrade the error message.

src/core/cgroup.c

index c7f1e77c6c9813e25b0b60a83a22dffc4845b265..b5d13478561831124abc69301c8094b2d373c1c4 100644 (file)
@@ -533,7 +533,7 @@ void unit_destroy_cgroup(Unit *u) {
 
         r = cg_trim_with_mask(u->cgroup_mask, u->cgroup_path, true);
         if (r < 0)
-                log_error("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));
+                log_debug("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r));
 
         hashmap_remove(u->manager->cgroup_unit, u->cgroup_path);