[pve-devel] [PATCH qemu-server v6 1/3] add qmeventd

Thomas Lamprecht t.lamprecht at proxmox.com
Sun Nov 18 16:03:38 CET 2018


On 11/14/18 2:59 PM, Dominik Csapak wrote:
> this adds a program that can listen to qemu qmp events on a given socket
> and if a shutdown event followed by a disconnected socket occurs,
> executes qm cleanup with arguments that indicate if the
> vm was closed gracefully and whether the guest initiated it
> 
> this is useful if we want to cleanup after the qemu process exited,
> e.g. tap devices, vgpus, etc.
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v5:
> * fix typo
> * fix function signature
> * change exit(0) to exit(EXIT_SUCCESS)
> 
>  Makefile         |  19 ++-
>  debian/control   |   2 +
>  debian/rules     |   2 +-
>  qmeventd.c       | 429 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  qmeventd.h       |  55 +++++++
>  qmeventd.service |  10 ++
>  6 files changed, 513 insertions(+), 4 deletions(-)
>  create mode 100644 qmeventd.c
>  create mode 100644 qmeventd.h
>  create mode 100644 qmeventd.service
> 
> diff --git a/debian/control b/debian/control
> index 912d7a9..15fb74a 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -3,7 +3,9 @@ Section: admin
>  Priority: optional
>  Maintainer: Proxmox Support Team <support at proxmox.com>
>  Build-Depends: debhelper (>= 7.0.50~),
> +               docutils,
                  ^^^^^^^^ 

I guess this is left over from earlier iterations where you had rst docs directly
here not in pve-docs? If so, please remove again from the dependency list...


>                 libio-multiplex-perl,
> +               libjson-c-dev,
>                 libpve-common-perl,
>                 libpve-guest-common-perl (>= 2.0-18),
>                 libpve-storage-perl,




More information about the pve-devel mailing list