From ed4605bf9ff63effe0d09811a3e708d5e3a75378 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 19 Dec 2011 21:54:53 -0600 Subject: cgroups: remove references to the "openrc" cgroup Openrc will set up cgroups the way the kernel documentation recommends. --- sh/runscript.sh.in | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sh/runscript.sh.in') 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 \ -- cgit v1.2.3