From c984506537fbb8a3adefd2d57dd4dc831eeb79c3 Mon Sep 17 00:00:00 2001 From: Alexander Vershilov Date: Tue, 16 Apr 2013 09:52:33 +0400 Subject: add cgroup cleanup support This adds the ability to kill all processes within a service's cgroup when that service is stopped or restarted. --- sh/runscript.sh.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sh/runscript.sh.in') diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index c9a3745..dcddd9b 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -302,6 +302,8 @@ while [ -n "$1" ]; do then "$1"_post || exit $? fi + [ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" ] && \ + cgroup_cleanup shift continue 2 else -- cgit v1.2.3