aboutsummaryrefslogtreecommitdiff
path: root/sh/cgroup-release-agent.sh.in
blob: d6dd1e1ebf47a10f7e67f06ba9372f5e5504d921 (plain)
1
2
3
4
5
6
7
8
9
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