1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Wed, 2 Jan 2019 14:37:58 +0100
4 Subject: [PATCH] PVE: [Config] Disable lxc.monitor cgroup
6 When not using relative cgroups this makes lxc unusable
7 within systemd service files as the service cgroup becomes
10 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
12 src/lxc/start.c | 18 +++++++++---------
13 1 file changed, 9 insertions(+), 9 deletions(-)
15 diff --git a/src/lxc/start.c b/src/lxc/start.c
16 index 1cf792aa2..24f387de6 100644
19 @@ -1954,15 +1954,15 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
23 - if (!cgroup_ops->monitor_create(cgroup_ops, handler)) {
24 - ERROR("Failed to create monitor cgroup");
25 - goto out_fini_nonet;
28 - if (!cgroup_ops->monitor_enter(cgroup_ops, handler->monitor_pid)) {
29 - ERROR("Failed to enter monitor cgroup");
30 - goto out_fini_nonet;
32 + //if (!cgroup_ops->monitor_create(cgroup_ops, handler)) {
33 + // ERROR("Failed to create monitor cgroup");
34 + // goto out_fini_nonet;
37 + //if (!cgroup_ops->monitor_enter(cgroup_ops, handler->monitor_pid)) {
38 + // ERROR("Failed to enter monitor cgroup");
39 + // goto out_fini_nonet;
42 if (geteuid() == 0 && !lxc_list_empty(&conf->id_map)) {
43 /* If the backing store is a device, mount it here and now. */