]> git.proxmox.com Git - pve-container.git/commit
poststop: use a reboot trigger file
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Mar 2017 10:25:41 +0000 (11:25 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 10 Mar 2017 12:49:51 +0000 (13:49 +0100)
commit1e1fad999fceb33125954b2a5cb461ef15e3745f
tree0baa63bf914b496eb54bccff128b1a50f77a9894
parent68fc26a040c8b8890dcccbfb84782b3be708a07b
poststop: use a reboot trigger file

Since the STOPPED state is set before cgroup cleanup we need
a better way to restart a container: We now install an
ExecStopPost snippet into the lxc@.service which when
encountering a reboot trigger file
(/var/lib/lxc/$vmid/reboot) performs a systemctl restart.
debian/triggers
src/Makefile
src/lxc-pve-poststop-hook
src/lxc-pve-prestart-hook
src/lxc-pve-reboot-trigger [new file with mode: 0755]
src/pve-reboot.conf [new file with mode: 0644]