chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: trim cgroups when going down
[elogind.git]
/
src
/
unit.c
diff --git
a/src/unit.c
b/src/unit.c
index c287310a48908474c778d66291164a0218a2c99e..18faae22e47c48b98bcbb9918e26014f354c1400 100644
(file)
--- 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 (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);
timer_unit_notify(u, ns);
path_unit_notify(u, ns);