cgroups: remove references to the "openrc" cgroup
Openrc will set up cgroups the way the kernel documentation recommends.
This commit is contained 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()
 | 
			
		||||
 
 | 
			
		||||
@@ -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 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user