Change RC_CGROUP to lower case
William Hubbs
12 years ago
2 | 2 |
# RC_SVCNAME.
|
3 | 3 |
# This setting is ignored if you do not have CONFIG_CGROUPS active in
|
4 | 4 |
# your kernel.
|
5 | |
# RC_CGROUP="foo"
|
|
5 |
# rc_cgroup="foo"
|
6 | 6 |
|
7 | 7 |
##############################################################################
|
8 | 8 |
# LINUX SPECIFIC OPTIONS
|
191 | 191 |
# Attach to CGroup - dir existing is enough for us
|
192 | 192 |
if [ -d /sys/fs/cgroup/ ]; then
|
193 | 193 |
# use RC_SVCNAME unless overridden in conf.d
|
194 | |
SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
|
|
194 |
SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
|
195 | 195 |
mkdir -p /sys/fs/cgroup/${SVC_CGROUP}
|
196 | 196 |
# now attach self to cgroup - any children of this process will inherit this
|
197 | 197 |
echo $$ > /sys/fs/cgroup/${SVC_CGROUP}/tasks
|
|
304 | 304 |
# CGroup cleanup
|
305 | 305 |
if [ -d /sys/fs/cgroup/ ]; then
|
306 | 306 |
# use RC_SVCNAME unless overridden in conf.d
|
307 | |
SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
|
|
307 |
SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
|
308 | 308 |
# reattach to root cgroup
|
309 | 309 |
echo $$ > /sys/fs/cgroup/tasks
|
310 | 310 |
# remove cgroup if empty, will fail if any task attached
|