mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
cgroup: downgrade error message when we cannot remove a cgroup to debug
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.
This commit is contained in:
parent
bdeeb6b543
commit
376dd21dc0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user