why is cgconfig.conf not being read on reboot on 14.04?
Solution 1:
This looks like a regression due to the fix for bug #1096771. There were some init scripts in cgroup-bin
in 12.04, which were removed in 13.04. The /etc/init/cgconfig.conf
service file contained this in the pre-start script
stanza:
/usr/sbin/cgconfigparser -l $CGCONFIG
So it was the cgconfig
service from the cgroup-bin
package that actually set up your cgroup configuration. cgroup-lite
hasn't changed much in between these releases, so I assume it isn't meant to read this configuration. I recommend that you open a bug report (and perhaps write a new Upstart service (or copy the old one) since it's unlikely they'll change this in an LTS release).
Since 12.04 is still supported, you can use the Packages index to download the older version of the package. I have reproduced /etc/init/cgconfig.conf
here for convenience:
description "cgconfig"
author "Serge E. Hallyn <[email protected]>"
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