1 |
commit: 5a8344a3d1068b2a7b24bf88f9a2882475b2a5ae |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 18:26:00 2012 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 18:26:00 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5a8344a3 |
7 |
|
8 |
Check if /sys/fs/cgroup/openrc is writable |
9 |
|
10 |
--- |
11 |
sh/runscript.sh.in | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in |
15 |
index 344e31c..faa85cc 100644 |
16 |
--- a/sh/runscript.sh.in |
17 |
+++ b/sh/runscript.sh.in |
18 |
@@ -195,7 +195,7 @@ unset _conf_d |
19 |
sourcex -e "@SYSCONFDIR@/rc.conf" |
20 |
|
21 |
if [ "$RC_UNAME" = "Linux" ]; then |
22 |
- if [ -d /sys/fs/cgroup/openrc ]; then |
23 |
+ if [ -d /sys/fs/cgroup/openrc ] && checkpath -W /sys/fs/cgroup/openrc ; then |
24 |
mkdir -p /sys/fs/cgroup/openrc/${RC_SVCNAME} |
25 |
echo $$ > /sys/fs/cgroup/openrc/${RC_SVCNAME}/tasks |
26 |
fi |