enable qemu cgroups; fixes #1949
Costa Tsaousis (ktsaou) committed
Mar 15, 2017 at 23:38 UTC
1155b67839db374cd0ae5191283a9923c17880c2
1 file changed
+5
-3
src/sys_fs_cgroup.c
+5
-3
@@ -148,6 +148,7 @@ void read_cgroup_plugin_configuration() {
148
enabled_cgroup_patterns = simple_pattern_create(
149
config_get("plugin:cgroups", "enable by default cgroups matching",
150
" /system.slice/docker-*.scope "
151
+ " /qemu.slice/*.scope " // #1949
152
" !*.mount "
153
" !*.partition "
154
" !*.scope "
@@ -159,18 +160,18 @@ void read_cgroup_plugin_configuration() {
160
" !/docker "
161
" !/libvirt "
162
" !/lxc "
162
- " !/lxc/*/ns " // #1397
163
+ " !/lxc/*/ns " // #1397
164
" !/machine "
165
" !/qemu "
166
" !/system "
167
" !/systemd "
168
" !/user "
168
- " * " // enable anything else
169
+ " * " // enable anything else
170
), SIMPLE_PATTERN_EXACT);
171
172
enabled_cgroup_paths = simple_pattern_create(
173
config_get("plugin:cgroups", "search for cgroups in subpaths matching",
173
- " !*-qemu " // #345
174
+ " !*-qemu " // #345
175
" !/init.scope "
176
" !/system "
177
" !/systemd "
@@ -184,6 +185,7 @@ void read_cgroup_plugin_configuration() {
185
186
enabled_cgroup_renames = simple_pattern_create(
187
config_get("plugin:cgroups", "run script to rename cgroups matching",
188
+ " /qemu.slice/*.scope " // #1949
189
" *docker* "
190
" *lxc* "
191
" !/ "