enable qemu cgroups; fixes #1949
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 15 Mar 2017 21:38:29 +0000 (23:38 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 15 Mar 2017 21:38:29 +0000 (23:38 +0200)
src/sys_fs_cgroup.c

index 16d057f4031b75977d0009da3a9bbf183926ca49..8f31527dec969e13b08dc6d180650633f32e835b 100644 (file)
@@ -148,6 +148,7 @@ void read_cgroup_plugin_configuration() {
     enabled_cgroup_patterns = simple_pattern_create(
             config_get("plugin:cgroups", "enable by default cgroups matching",
                     " /system.slice/docker-*.scope "
+                    " /qemu.slice/*.scope "                // #1949
                     " !*.mount "
                     " !*.partition "
                     " !*.scope "
@@ -159,18 +160,18 @@ void read_cgroup_plugin_configuration() {
                     " !/docker "
                     " !/libvirt "
                     " !/lxc "
-                    " !/lxc/*/ns "         //  #1397
+                    " !/lxc/*/ns "                         //  #1397
                     " !/machine "
                     " !/qemu "
                     " !/system "
                     " !/systemd "
                     " !/user "
-                    " * "                  // enable anything else
+                    " * "                                  // enable anything else
             ), SIMPLE_PATTERN_EXACT);
 
     enabled_cgroup_paths = simple_pattern_create(
             config_get("plugin:cgroups", "search for cgroups in subpaths matching",
-                    " !*-qemu "            //  #345
+                    " !*-qemu "                           //  #345
                     " !/init.scope "
                     " !/system "
                     " !/systemd "
@@ -184,6 +185,7 @@ void read_cgroup_plugin_configuration() {
 
     enabled_cgroup_renames = simple_pattern_create(
             config_get("plugin:cgroups", "run script to rename cgroups matching",
+                    " /qemu.slice/*.scope "                // #1949
                     " *docker* "
                     " *lxc* "
                     " !/ "