aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/runscript.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 18bf4c35..83db42b1 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -189,8 +189,8 @@ unset _conf_d
# Load any system overrides
sourcex -e "@SYSCONFDIR@/rc.conf"
-if [ "$RC_UNAME" = "Linux" ]; then
- if [ -d /sys/fs/cgroup/openrc ] && checkpath -W /sys/fs/cgroup/openrc ; then
+if [ "$RC_UNAME" = "Linux" -a "$1" = "start" ]; then
+ if [ -d /sys/fs/cgroup/openrc ]; then
mkdir -p /sys/fs/cgroup/openrc/${RC_SVCNAME}
echo $$ > /sys/fs/cgroup/openrc/${RC_SVCNAME}/tasks
fi