diff options
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |