From e451d173faeef52bd4723a50363e37e6d481521f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 25 May 2013 21:04:10 -0500 Subject: runscript.sh: run cgroup_cleanup automatically after stop --- sh/runscript.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sh/runscript.sh.in') 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 -- cgit v1.2.3