diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-15 14:22:34 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-15 14:22:34 -0500 |
commit | 25b45a5a239318fb57c405c3fe64e53b0738ad68 (patch) | |
tree | c3f0cd63fbb0fa6d6435823e6b68c386f378d652 /sh/rc-cgroup.sh.in | |
parent | 4651b8c7e9e2ef9c1ea1fb8d174d1ca4693627af (diff) |
cgroup_cleanup: try to remove the cgroup version 2 cgroup
If we were able to kill all the processes in the cgroup, it should be
removed.
Diffstat (limited to 'sh/rc-cgroup.sh.in')
-rw-r--r-- | sh/rc-cgroup.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 2a54ee4a..930eeefc 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -212,6 +212,7 @@ cgroup_cleanup() yesno "${rc_send_sigkill:-yes}" && kill -s KILL ${pids} 2> /dev/null fi + cgroup2_remove [ -z "$(cgroup_get_pids)" ] eend $? "Unable to stop all processes" return 0 |