[pve-devel] [PATCH v2 container 3/3] switch to new unit in reboot trigger

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Oct 9 15:04:49 CEST 2017


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 src/lxc-pve-reboot-trigger | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lxc-pve-reboot-trigger b/src/lxc-pve-reboot-trigger
index 95c3ac8..6e413ea 100755
--- a/src/lxc-pve-reboot-trigger
+++ b/src/lxc-pve-reboot-trigger
@@ -7,4 +7,5 @@ my $vmid = $ARGV[0] or exit(1);
 exit(0) if $vmid !~ /^\d+$/; # check for a PVE ID
 exit(0) if !-e "/etc/pve/lxc/${vmid}.conf";
 exit(0) if !unlink("/var/lib/lxc/$vmid/reboot");
-exec {'systemctl'} 'systemctl', '--no-block', 'restart', "lxc\@${vmid}.service";
+
+exec {'systemctl'} 'systemctl', '--no-block', 'restart', "pve-container\@${vmid}.service";
-- 
2.14.1





More information about the pve-devel mailing list