openrc/sh/cgroup-release-agent.sh.in
William Hubbs d8bbeb184f 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.
2011-11-20 14:07:46 -06:00

11 lines
236 B
Bash

#!@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