/etc/init/cgconfig.conf is in cgroup-bin 0.37.1-1ubuntu10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | description "cgconfig"
author "Serge E. Hallyn <serge.hallyn@ubuntu.com>"
start on runlevel [2345]
console output
pre-start script
test -x /usr/sbin/cgconfigparser || { stop; exit 0; }
CREATE_DEFAULT="yes"
CGCONFIG=/etc/cgconfig.conf
if [ -r /etc/default/cgconfig ]; then
. /etc/default/cgconfig
fi
# If we've already run, don't do it again!
if grep -q /sys/fs/cgroup /proc/mounts; then
stop
exit 0
fi
[ -r $CGCONFIG ] || { echo "$CGCONFIG is empty"; stop; exit 0; }
mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroups /sys/fs/cgroup
/usr/sbin/cgconfigparser -l $CGCONFIG
if [ "$CREATE_DEFAULT" = "yes" ]; then
/usr/sbin/create_default_cgroups
fi
end script
post-stop script
if [ -x /usr/sbin/cgclear ]
then
/usr/sbin/cgclear
fi
umount /sys/fs/cgroup || true
end script
|