]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #783: set KillMode=none, so that systemd don't kill them at shutdown
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Nov 2015 15:48:47 +0000 (16:48 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Nov 2015 15:52:22 +0000 (16:52 +0100)
PVE/QemuServer.pm

index 81a1c84108257aa408f43b251e35d5bb19933ecf..e5c8e0d840b170534f482dc13ea1ef3ab7cfbab8 100644 (file)
@@ -2656,6 +2656,9 @@ sub config_to_command {
     push @$cmd, '--scope';
     push @$cmd, '--slice', "qemu";
     push @$cmd, '--unit', $vmid;
+    # set KillMode=none, so that systemd don't kill those scopes
+    # at shutdown (pve-manager service should stop the VMs instead)
+    push @$cmd, '-p', "KillMode=none";
     push @$cmd, '-p', "CPUShares=$cpuunits";
     if ($conf->{cpulimit}) {
        my $cpulimit = int($conf->{cpulimit} * 100);