summaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
diff options
context:
space:
mode:
authorAlexander Vershilov <alexander.vershilov@gmail.com>2013-04-16 09:52:33 +0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-25 16:59:19 -0500
commitc984506537fbb8a3adefd2d57dd4dc831eeb79c3 (patch)
tree8921f1c4bb8d08cb428d0fc106b75986c2eae92b /sh/runscript.sh.in
parente4668a5061de4f225d4e9d534ff6212e634e45d2 (diff)
downloadopenrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.gz
openrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.bz2
openrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.xz
add cgroup cleanup support
This adds the ability to kill all processes within a service's cgroup when that service is stopped or restarted.
Diffstat (limited to 'sh/runscript.sh.in')
-rw-r--r--sh/runscript.sh.in2
1 files changed, 2 insertions, 0 deletions
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