Change RC_CGROUP to lower case
This commit is contained in:
parent
20df56f0b2
commit
0bbb764f70
@ -3,7 +3,7 @@
|
|||||||
# RC_SVCNAME.
|
# RC_SVCNAME.
|
||||||
# This setting is ignored if you do not have CONFIG_CGROUPS active in
|
# This setting is ignored if you do not have CONFIG_CGROUPS active in
|
||||||
# your kernel.
|
# your kernel.
|
||||||
# RC_CGROUP="foo"
|
# rc_cgroup="foo"
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# LINUX SPECIFIC OPTIONS
|
# LINUX SPECIFIC OPTIONS
|
||||||
|
@ -192,7 +192,7 @@ sourcex -e "@SYSCONFDIR@/rc.conf"
|
|||||||
# Attach to CGroup - dir existing is enough for us
|
# Attach to CGroup - dir existing is enough for us
|
||||||
if [ -d /sys/fs/cgroup/ ]; then
|
if [ -d /sys/fs/cgroup/ ]; then
|
||||||
# use RC_SVCNAME unless overridden in conf.d
|
# 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}
|
mkdir -p /sys/fs/cgroup/${SVC_CGROUP}
|
||||||
# now attach self to cgroup - any children of this process will inherit this
|
# now attach self to cgroup - any children of this process will inherit this
|
||||||
echo $$ > /sys/fs/cgroup/${SVC_CGROUP}/tasks
|
echo $$ > /sys/fs/cgroup/${SVC_CGROUP}/tasks
|
||||||
@ -305,7 +305,7 @@ done
|
|||||||
# CGroup cleanup
|
# CGroup cleanup
|
||||||
if [ -d /sys/fs/cgroup/ ]; then
|
if [ -d /sys/fs/cgroup/ ]; then
|
||||||
# use RC_SVCNAME unless overridden in conf.d
|
# use RC_SVCNAME unless overridden in conf.d
|
||||||
SVC_CGROUP=${RC_CGROUP:-$RC_SVCNAME}
|
SVC_CGROUP=${rc_cgroup:-$RC_SVCNAME}
|
||||||
# reattach to root cgroup
|
# reattach to root cgroup
|
||||||
echo $$ > /sys/fs/cgroup/tasks
|
echo $$ > /sys/fs/cgroup/tasks
|
||||||
# remove cgroup if empty, will fail if any task attached
|
# remove cgroup if empty, will fail if any task attached
|
||||||
|
Loading…
Reference in New Issue
Block a user