From aedf820870a0a059e9b5873b8a4dcf2c2f82a2ac Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Feb 2021 16:03:31 +0100 Subject: [PATCH] qmeventd: rework description, mention s.reiter as author Signed-off-by: Thomas Lamprecht --- qmeventd/qmeventd.c | 28 ++++++++++++---------------- qmeventd/qmeventd.h | 1 + 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/qmeventd/qmeventd.c b/qmeventd/qmeventd.c index c59348e3..28363e49 100644 --- a/qmeventd/qmeventd.c +++ b/qmeventd/qmeventd.c @@ -3,23 +3,19 @@ Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH Author: Dominik Csapak + Author: Stefan Reiter - qmeventd listens on a given socket, and waits for qemu processes - to connect - - it then waits for shutdown events followed by the closing of the socket, - it then calls /usr/sbin/qm cleanup with following arguments - - /usr/sbin/qm cleanup VMID - - parameter explanation: - - graceful: - 1|0 depending if it saw a shutdown event before the socket closed - - guest: - 1|0 depending if the shutdown was requested from the guest + Description: + qmeventd listens on a given socket, and waits for qemu processes to + connect. After accepting a connection qmeventd waits for shutdown events + followed by the closing of the socket. Once that happens `qm cleanup` will + be executed with following three arguments: + VMID + Where `graceful` can be `1` or `0` depending if shutdown event was observed + before the socket got closed. The second parameter `guest` is also boolean + `1` or `0` depending if the shutdown was requested from the guest OS + (i.e., the "inside"). */ #ifndef _GNU_SOURCE @@ -28,6 +24,7 @@ #include #include +#include #include #include #include @@ -39,7 +36,6 @@ #include #include #include -#include #include "qmeventd.h" diff --git a/qmeventd/qmeventd.h b/qmeventd/qmeventd.h index 7858081b..2cf1947f 100644 --- a/qmeventd/qmeventd.h +++ b/qmeventd/qmeventd.h @@ -3,6 +3,7 @@ Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH Author: Dominik Csapak + Author: Stefan Reiter */ #include