From 584ff19452dbed2868174c44716ca12a9834de07 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 4 Sep 2008 09:07:42 +0000 Subject: [PATCH] * src/xend_internal.c src/xs_internal.c: use poweroff instead of halt when shutting down a xen domain, patch by John Levon Daniel --- ChangeLog | 5 +++++ src/xend_internal.c | 2 +- src/xs_internal.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0adc50d4b..a17aedc1e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 4 11:05:59 CEST 2008 Daniel Veillard + + * src/xend_internal.c src/xs_internal.c: use poweroff instead of halt + when shutting down a xen domain, patch by John Levon + Thu Sep 4 10:13:43 CEST 2008 Daniel Veillard * src/qemu_driver.c: switch flags to unsigned by James Morris diff --git a/src/xend_internal.c b/src/xend_internal.c index 124ee8b5fc..20162d8bee 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -2884,7 +2884,7 @@ xenDaemonDomainShutdown(virDomainPtr domain) } if (domain->id < 0) return(-1); - return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "halt", NULL); + return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "poweroff", NULL); } /** diff --git a/src/xs_internal.c b/src/xs_internal.c index 551d904627..316604a979 100644 --- a/src/xs_internal.c +++ b/src/xs_internal.c @@ -654,7 +654,7 @@ xenStoreDomainShutdown(virDomainPtr domain) * this is very hackish, the domU kernel probes for a special * node in the xenstore and launch the shutdown command if found. */ - return(virDomainDoStoreWrite(domain, "control/shutdown", "halt")); + return(virDomainDoStoreWrite(domain, "control/shutdown", "poweroff")); } /** -- GitLab