From fb385181517aa97fc5b379380cde0c2567f5f444 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Jul 2010 17:34:42 +0200 Subject: unit: trim cgroups when going down --- src/unit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/unit.c') diff --git a/src/unit.c b/src/unit.c index c287310a48..18faae22e4 100644 --- a/src/unit.c +++ b/src/unit.c @@ -973,6 +973,9 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { if (ns != os && ns == UNIT_MAINTENANCE) log_notice("Unit %s entered maintenance state.", u->meta.id); + if (UNIT_IS_INACTIVE_OR_MAINTENANCE(ns)) + cgroup_bonding_trim_list(u->meta.cgroup_bondings, true); + timer_unit_notify(u, ns); path_unit_notify(u, ns); -- cgit v1.2.3-54-g00ecf