runscript.sh: run cgroup_cleanup automatically after stop

This commit is contained in:
William Hubbs 2013-05-25 21:04:10 -05:00
parent b5cb1f5020
commit e451d173fa

View File

@ -302,7 +302,8 @@ while [ -n "$1" ]; do
then
"$1"_post || exit $?
fi
[ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" ] && \
[ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" -a \
"$1" = "stop" ] && \
cgroup_cleanup
shift
continue 2