From 25b45a5a239318fb57c405c3fe64e53b0738ad68 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 15 Sep 2017 14:22:34 -0500 Subject: 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. --- sh/rc-cgroup.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'sh/rc-cgroup.sh.in') 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 -- cgit v1.2.3