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:
parent
649dbf4285
commit
aedf820870
@ -3,23 +3,19 @@
|
|||||||
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
|
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
|
||||||
|
|
||||||
Author: Dominik Csapak <d.csapak@proxmox.com>
|
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
|
Description:
|
||||||
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
|
|
||||||
|
|
||||||
|
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
|
#ifndef _GNU_SOURCE
|
||||||
@ -28,6 +24,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <gmodule.h>
|
||||||
#include <json.h>
|
#include <json.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@ -39,7 +36,6 @@
|
|||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <gmodule.h>
|
|
||||||
|
|
||||||
#include "qmeventd.h"
|
#include "qmeventd.h"
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
|
Copyright (C) 2018 - 2021 Proxmox Server Solutions GmbH
|
||||||
|
|
||||||
Author: Dominik Csapak <d.csapak@proxmox.com>
|
Author: Dominik Csapak <d.csapak@proxmox.com>
|
||||||
|
Author: Stefan Reiter <s.reiter@proxmox.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user