Check if /sys/fs/cgroup/openrc is writable

This commit is contained in:
Christian Ruppert 2012-01-28 19:26:00 +01:00
parent 2d2751c433
commit 5a8344a3d1

View File

@ -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