Change RC_CGROUP to lower case

This commit is contained in:
William Hubbs 2011-11-17 16:42:03 -06:00
parent 20df56f0b2
commit 0bbb764f70
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# RC_SVCNAME.
# This setting is ignored if you do not have CONFIG_CGROUPS active in
# your kernel.
# RC_CGROUP="foo"
# rc_cgroup="foo"
##############################################################################
# LINUX SPECIFIC OPTIONS

View File

@ -192,7 +192,7 @@ sourcex -e "@SYSCONFDIR@/rc.conf"
# Attach to CGroup - dir existing is enough for us
if [ -d /sys/fs/cgroup/ ]; then
# use RC_SVCNAME unless overridden in conf.d
SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
mkdir -p /sys/fs/cgroup/${SVC_CGROUP}
# now attach self to cgroup - any children of this process will inherit this
echo $$ > /sys/fs/cgroup/${SVC_CGROUP}/tasks
@ -305,7 +305,7 @@ done
# CGroup cleanup
if [ -d /sys/fs/cgroup/ ]; then
# use RC_SVCNAME unless overridden in conf.d
SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
# reattach to root cgroup
echo $$ > /sys/fs/cgroup/tasks
# remove cgroup if empty, will fail if any task attached