Codebase list openrc / 0bbb764
Change RC_CGROUP to lower case William Hubbs 12 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
22 # RC_SVCNAME.
33 # This setting is ignored if you do not have CONFIG_CGROUPS active in
44 # your kernel.
5 # RC_CGROUP="foo"
5 # rc_cgroup="foo"
66
77 ##############################################################################
88 # LINUX SPECIFIC OPTIONS
191191 # Attach to CGroup - dir existing is enough for us
192192 if [ -d /sys/fs/cgroup/ ]; then
193193 # use RC_SVCNAME unless overridden in conf.d
194 SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
194 SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
195195 mkdir -p /sys/fs/cgroup/${SVC_CGROUP}
196196 # now attach self to cgroup - any children of this process will inherit this
197197 echo $$ > /sys/fs/cgroup/${SVC_CGROUP}/tasks
304304 # CGroup cleanup
305305 if [ -d /sys/fs/cgroup/ ]; then
306306 # use RC_SVCNAME unless overridden in conf.d
307 SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
307 SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
308308 # reattach to root cgroup
309309 echo $$ > /sys/fs/cgroup/tasks
310310 # remove cgroup if empty, will fail if any task attached