summaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-09-25 20:05:41 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-10-02 05:43:51 -0500
commita530722f653e13407ac0638cfcad8e938f602493 (patch)
treeef3f6f0f9cc9bd89a25d64c29b1c59622229aa89 /sh/runscript.sh.in
parent661e9cf00211b712c3d88b8e3a18a40906f22468 (diff)
downloadopenrc-0.12.1.tar.gz
openrc-0.12.1.tar.bz2
openrc-0.12.1.tar.xz
fix cgroup_cleanup functionopenrc-0.12.1
The yesno test for rc_cgroup_cleanup belongs at the point where this function is called from runscript, not in the function itself. X-Gentoo-Bug: 486210 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=486210
Diffstat (limited to 'sh/runscript.sh.in')
-rw-r--r--sh/runscript.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index a1ed9c6..f8fcbc5 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -308,6 +308,7 @@ while [ -n "$1" ]; do
fi
[ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" -a \
"$1" = "stop" ] && \
+ yesno "${rc_cgroup_cleanup}" && \
cgroup_cleanup
shift
continue 2