Check if /sys/fs/cgroup/openrc is writable
This commit is contained in:
parent
2d2751c433
commit
5a8344a3d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user