Using OpenRC 0.12.4, setting rc_cgroup_X in /etc/rc.conf overrides any value of the same variable in per-service files in /etc/conf.d While I understand that rc.conf overriding per-service variables is useful (and in fact an important safety net when it comes to a number of the settings there), with cgroups it should allow setting defaults for services that don't override them so that admins don't have to go through dozens of files in /etc/conf.d and change each one of them when the default policy changes. From my point of view, there are a couple solutions to this: 1. Add new variable rc_default_cgroup_X for each cgroup type and have that set defaults if rc_cgroup_X isn't defined in rc.conf or the service's conf.d file. (This is probably the best option, it dosen't break current expectations and still improves functionality). 2. Add new variable rc_{force,all,override}_cgroup_X to provide current functionality, and have rc_cgroup_X in rc.conf give defaults for services without rc_cgroup_X set in /etc/conf.d
I like #1.
Created attachment 445038 [details, diff] fix-config.patch This patch is the way I would prefer to fix this. We should load the global config first, then let each service override it. I haven't done this, because I don't have a feel for the breakage it would cause.
https://github.com/openrc/openrc/commit/d4d5593 applies the patch I attached to this bug along with an update to the NEWS file. This will be in OpenRC-0.22.