diff options
author | William Hubbs <williamh@gentoo.org> | 2011-11-19 18:15:46 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-11-20 14:07:46 -0600 |
commit | d8bbeb184f462199582fa265c9b681288884ecd9 (patch) | |
tree | 69f41c7c2bf83eaeddad57e177505b1c2abacca4 /sh/cgroup-release-agent.sh.in | |
parent | 453d13296d84472e6317472c2b27015b3ca612c4 (diff) |
CGroups: create the openrc cgroup hierarchy
Openrc will create a cgroup hierarchy called openrc which will have all
services it starts and all subsystems attached to it. If you need other
groups/hierarchies, please use libcgroup.
Diffstat (limited to 'sh/cgroup-release-agent.sh.in')
-rw-r--r-- | sh/cgroup-release-agent.sh.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sh/cgroup-release-agent.sh.in b/sh/cgroup-release-agent.sh.in new file mode 100644 index 00000000..c3174fee --- /dev/null +++ b/sh/cgroup-release-agent.sh.in @@ -0,0 +1,10 @@ +#!@SHELL@ +# +# This is run by the kernel after the last task is removed from a +# control group in the openrc hierarchy. + +cgroup=/sys/fs/cgroup/openrc +PATH=/bin:/usr/bin:/sbin:/usr/sbin +if [ -d ${cgroup}/$1 ]; then + rmdir ${cgroup}/$1 +fi |