]> git.proxmox.com Git - pve-container.git/commit
use the lxc@ service file provded by lxc
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 2 Feb 2017 10:02:36 +0000 (11:02 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 2 Feb 2017 10:12:48 +0000 (11:12 +0100)
commit510e21f88ebde4e3b815d868819564e560706a9f
tree18ca9b246e16577da2136d98fe937dcf1b8cc75b
parentcfa3086d95c3a39b584b2d60aa53938e1f30b3dc
use the lxc@ service file provded by lxc

Until now the lxc-start process was sort of a danglign
process in the pvedaemon.service cgroup when a container was
started from the web UI causing long stalls when trying to
restart pvedaemon and potential container kills. (Mostly
problematic when issuing package upgrades).
We now start containers via the lxc@ service file giving
them their own service cgroup.

The downside is that we'll have to patch the lxc@ service
file in the lxc package to Type=forking without the -F
option otherwise all of the the containers' console outputs
will end up in the logs...
src/PVE/API2/LXC/Status.pm
src/PVE/VZDump/LXC.pm
src/lxc-pve-poststop-hook