Commit f6023656 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

service: trim cgroups if services that are "active" but "exited"

parent b708e7ce
......@@ -1179,6 +1179,11 @@ static void service_set_state(Service *s, ServiceState state) {
/* For the inactive states unit_notify() will trim the cgroup,
* but for exit we have to do that ourselves... */
if (state == SERVICE_EXITED)
cgroup_bonding_trim_list(s->meta.cgroup_bondings, true);
if (old_state != state)
log_debug("%s changed %s -> %s", s->, service_state_to_string(old_state), service_state_to_string(state));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment