summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-12-19 21:54:53 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-12-19 21:54:53 -0600
commited4605bf9ff63effe0d09811a3e708d5e3a75378 (patch)
tree96e65ee8ceee8970171850607e54cabf0ec86e32
parent461c69acdbf89b029554312392279753127112ee (diff)
downloadopenrc-ed4605bf9ff63effe0d09811a3e708d5e3a75378.tar.gz
openrc-ed4605bf9ff63effe0d09811a3e708d5e3a75378.tar.bz2
openrc-ed4605bf9ff63effe0d09811a3e708d5e3a75378.tar.xz
cgroups: remove references to the "openrc" cgroup
Openrc will set up cgroups the way the kernel documentation recommends.
-rw-r--r--init.d/sysfs.in5
-rw-r--r--sh/runscript.sh.in13
2 files changed, 0 insertions, 18 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index cb44b30..8838213 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -85,11 +85,6 @@ mount_cgroups()
;;
esac
done < /proc/cgroups
-
- # mkdir /sys/fs/cgroup/openrc
- # mount -t cgroup \
- # -o nodev,noexec,nosuid,name=openrc \
- # openrc /sys/fs/cgroup/openrc
}
start()
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 07f96d8..b738b89 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -131,19 +131,6 @@ start()
service_inactive && _inactive=true
mark_service_inactive
fi
- if [ "$RC_UNAME" = Linux ]; then
- local cgroup=/sys/fs/cgroup/openrc
- local svc_cgroup=${cgroup}/${RC_SVCNAME}
- if mountinfo -q ${cgroup}; then
- mkdir ${svc_cgroup}
- for f in cpuset.cpus cpuset.mems; do
- if [ -f ${cgroup}/${f} ]; then
- cp ${cgroup}/${f} ${svc_cgroup}
- fi
- done
- echo $$ > ${svc_cgroup}/tasks
- fi
- fi
eval start-stop-daemon --start \
--exec $command \
${procname:+--name} $procname \