]>
git.proxmox.com Git - pve-container.git/blob - src/lxc-pve-reboot-trigger
6 my $vmid = $ARGV[0] or exit(1);
7 exit(0) if $vmid !~ /^\d+$/; # check for a PVE ID
8 exit(0) if !-e
"/etc/pve/lxc/${vmid}.conf";
9 exit(0) if !unlink("/var/lib/lxc/$vmid/reboot");
10 exec {'systemctl'} 'systemctl', '--no-block', 'restart', "lxc\@${vmid}.service";