add cgroup cleanup support

This adds the ability to kill all processes within a service's cgroup
when that service is stopped or restarted.
This commit is contained in:
Alexander Vershilov
2013-04-16 09:52:33 +04:00
committed by William Hubbs
parent e4668a5061
commit c984506537
3 changed files with 47 additions and 0 deletions

View File

@@ -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