5

I installed cgroup on my ubuntu (13.9.0) using this command:

apt-get install cgroup-bin 

However, cgconfig.conf file has not been created in /etc and not anywhere else. Did I miss anything?

NaSh
  • 151

1 Answers1

3

This configuration file can be created in 2 ways:

  1. Copied from /usr/share/doc/cgroup-bin/examples/cgconfig.conf and then appropriately edited
  2. Semi-automatically generated by using cgsnapshot

References:

andrew.46
  • 39,479
  • 3
    It's worth to be noted that on debian systems, the cgsnapshot command expects an existing blacklist file, and it refuses to run unless it's available at /etc/cgsnapshot_blacklist.conf. At least these are my observations on Debian8/9. – Gergely Lukacsy Aug 07 '18 at 16:35
  • 1
    sudo touch /etc/cgsnapshot_blacklist.conf seems to be enough to make Debian package happy to run cgsnapshot. – Mikko Rantalainen Mar 21 '23 at 08:41
  • 1
    Ubuntu has the example files in /usr/share/doc/cgroup-tools/examples/cgconfig.conf because they renamed the package name in the past. – Mikko Rantalainen Mar 21 '23 at 08:44