5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2024-12-22 13:34:06 +03:00

qmeventd: rework description, mention s.reiter as author

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-02-11 16:03:31 +01:00
parent 649dbf4285
commit aedf820870
2 changed files with 13 additions and 16 deletions

View File

@ -3,23 +3,19 @@
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
Author: Dominik Csapak <d.csapak@proxmox.com>
Author: Stefan Reiter <s.reiter@proxmox.com>
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 <graceful> <guest>
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 <graceful> <guest>
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 <errno.h>
#include <fcntl.h>
#include <gmodule.h>
#include <json.h>
#include <signal.h>
#include <stdbool.h>
@ -39,7 +36,6 @@
#include <sys/un.h>
#include <sys/wait.h>
#include <unistd.h>
#include <gmodule.h>
#include "qmeventd.h"

View File

@ -3,6 +3,7 @@
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
Author: Dominik Csapak <d.csapak@proxmox.com>
Author: Stefan Reiter <s.reiter@proxmox.com>
*/
#include <sys/syscall.h>