aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-05-25 21:04:10 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-05-25 21:04:10 -0500
commite451d173faeef52bd4723a50363e37e6d481521f (patch)
tree33559fc5c1172507d6ec8b8b23b3229f1cd1a39b
parentb5cb1f5020c1e4969b6c870f665a87606c494997 (diff)
runscript.sh: run cgroup_cleanup automatically after stop
-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 dcddd9b1..58e8eacf 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