[pve-devel] applied-series: [PATCH v2 container 1/2] Add module for reading state changes from monitor socket

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 9 21:09:50 CEST 2020


On 08.09.20 13:58, Fabian Ebner wrote:
> Will be used to monitor state changes on container startup.
> 
> Co-developed-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> 
> New in v2.
> 
> I hard-coded the name of the abstract UNIX socket instead of
> trying to re-implement lxc/monitor.c's lxc_monitor_sock_name
> function. For us, is it true that the lxcpath is always '/varl/lib/lxc'?
> Otherwise this won't always work.
> 
>  src/PVE/LXC/Makefile   |  1 +
>  src/PVE/LXC/Monitor.pm | 92 ++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 93 insertions(+)
>  create mode 100644 src/PVE/LXC/Monitor.pm
> 
>

applied series, thanks! Wolfgang may improve his variant, e.g., by patching lxc, to avoid
a runtime dependency on the lxc monitor, but until that works out this is 10000x times
better that the current status quo.





More information about the pve-devel mailing list