aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-01-28 19:26:00 +0100
committerChristian Ruppert <idl0r@gentoo.org>2012-01-28 19:26:00 +0100
commit5a8344a3d1068b2a7b24bf88f9a2882475b2a5ae (patch)
tree21a640b6cba727049d1ecac2495e72fe76a94205
parent2d2751c4331a0204c4f7f6c4dd3994f34e0a4d47 (diff)
Check if /sys/fs/cgroup/openrc is writable
-rw-r--r--sh/runscript.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 344e31c6..faa85cca 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -195,7 +195,7 @@ unset _conf_d
sourcex -e "@SYSCONFDIR@/rc.conf"
if [ "$RC_UNAME" = "Linux" ]; then
- if [ -d /sys/fs/cgroup/openrc ]; then
+ if [ -d /sys/fs/cgroup/openrc ] && checkpath -W /sys/fs/cgroup/openrc ; then
mkdir -p /sys/fs/cgroup/openrc/${RC_SVCNAME}
echo $$ > /sys/fs/cgroup/openrc/${RC_SVCNAME}/tasks
fi