summaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'sh/runscript.sh.in')
-rw-r--r--sh/runscript.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index dcddd9b..58e8eac 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -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