summaryrefslogtreecommitdiffstats
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-20 03:53:12 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-20 03:53:12 +0200
commit38c52d4606c77ff2b2b60a08f663a1983d8254b0 (patch)
tree694361c7bb0e242e73c0ef9014624ea5ac6da19d /src/service.c
parentunits: set capability bounding set for syslog services (diff)
downloadsystemd-38c52d4606c77ff2b2b60a08f663a1983d8254b0.tar.xz
systemd-38c52d4606c77ff2b2b60a08f663a1983d8254b0.zip
cgroup: don't accidentaly trim on reload
https://bugzilla.redhat.com/show_bug.cgi?id=678555
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 7f8d005f00..0845d21bad 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1470,7 +1470,7 @@ 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)
+ if (state == SERVICE_EXITED && s->meta.manager->n_deserializing <= 0)
cgroup_bonding_trim_list(s->meta.cgroup_bondings, true);
if (old_state != state)