[pve-devel] [PATCH container 3/5] cgroup cleanup: add missing lxc.monitor cleanup

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Apr 6 09:50:44 CEST 2020


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/lxc-pve-prestart-hook | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc-pve-prestart-hook b/src/lxc-pve-prestart-hook
index be0063d..66569f9 100755
--- a/src/lxc-pve-prestart-hook
+++ b/src/lxc-pve-prestart-hook
@@ -158,8 +158,8 @@ sub cleanup_cgroups($) {
 	my @controllers_cgv1 = keys %$v1;
 	foreach my $controller (@controllers_cgv1) {
 	    $controller =~ s/^name=//; # `name=systemd` is mounted just as `systemd`
-	    my $cgpath = "/sys/fs/cgroup/$controller/lxc/$vmid";
-	    rmdir_recursive($cgpath);
+	    rmdir_recursive("/sys/fs/cgroup/$controller/lxc/$vmid");
+	    rmdir_recursive("/sys/fs/cgroup/$controller/lxc.monitor/$vmid");
 	}
 
 	if ($v2) {
-- 
2.20.1





More information about the pve-devel mailing list