From 5a8344a3d1068b2a7b24bf88f9a2882475b2a5ae Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Sat, 28 Jan 2012 19:26:00 +0100 Subject: Check if /sys/fs/cgroup/openrc is writable --- sh/runscript.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3