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:
committed by
William Hubbs
parent
e4668a5061
commit
c984506537
@@ -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
|
||||
|
Reference in New Issue
Block a user