* Re: [Xen-changelog] XenLinux restart/poweroff calls 'reboot' or 'poweroff'
[not found] <E1Dx9cQ-0006Je-03@xenbits.xensource.com>
@ 2005-07-26 9:58 ` aq
0 siblings, 0 replies; only message in thread
From: aq @ 2005-07-26 9:58 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
On 7/26/05, Xen patchbot -unstable
<patchbot-unstable@lists.xensource.com> wrote:
> # HG changeset patch
> # User kaf24@firebug.cl.cam.ac.uk
> # Node ID 9a936ba5cde0f2b33226e23c8c735f1b25924494
> # Parent 6feba419cead1e49909c32dc111e2c8dedfac32e
>
> XenLinux restart/poweroff calls 'reboot' or 'poweroff'
> as appropriate.
> Signed-off-by: Keir Fraser <keir@xensource.com>
oops, this patch failed to fix other refers to halt and shutdown in
the same file. Please take the following patch.
And please get the patch for -testing, too.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
[-- Attachment #2: shutdown2.unstable.patch --]
[-- Type: application/octet-stream, Size: 840 bytes --]
diff -r ecb17ef5a587 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Mon Jul 25 21:19:14 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Tue Jul 26 18:53:12 2005
@@ -187,7 +187,7 @@
switch ( shutting_down )
{
case CMSG_SHUTDOWN_POWEROFF:
- if ( execve("/sbin/halt", poweroff_argv, envp) < 0 )
+ if ( execve("/sbin/poweroff", poweroff_argv, envp) < 0 )
{
sys_reboot(LINUX_REBOOT_MAGIC1,
LINUX_REBOOT_MAGIC2,
@@ -197,7 +197,7 @@
break;
case CMSG_SHUTDOWN_REBOOT:
- if ( execve("/sbin/shutdown", restart_argv, envp) < 0 )
+ if ( execve("/sbin/reboot", restart_argv, envp) < 0 )
{
sys_reboot(LINUX_REBOOT_MAGIC1,
LINUX_REBOOT_MAGIC2,
[-- Attachment #3: shutdown.testing.patch --]
[-- Type: application/octet-stream, Size: 1415 bytes --]
diff -r 026436ebd99c linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c Mon Jul 18 07:45:41 2005
+++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c Tue Jul 26 02:24:38 2005
@@ -159,8 +159,8 @@
{
static char *envp[] = { "HOME=/", "TERM=linux",
"PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL };
- static char *restart_argv[] = { "/sbin/shutdown", "-r", "now", NULL };
- static char *poweroff_argv[] = { "/sbin/halt", "-p", NULL };
+ static char *restart_argv[] = { "/sbin/reboot", NULL };
+ static char *poweroff_argv[] = { "/sbin/poweroff", NULL };
extern asmlinkage long sys_reboot(int magic1, int magic2,
unsigned int cmd, void *arg);
@@ -174,7 +174,7 @@
switch ( shutting_down )
{
case CMSG_SHUTDOWN_POWEROFF:
- if ( execve("/sbin/halt", poweroff_argv, envp) < 0 )
+ if ( execve("/sbin/poweroff", poweroff_argv, envp) < 0 )
{
sys_reboot(LINUX_REBOOT_MAGIC1,
LINUX_REBOOT_MAGIC2,
@@ -184,7 +184,7 @@
break;
case CMSG_SHUTDOWN_REBOOT:
- if ( execve("/sbin/shutdown", restart_argv, envp) < 0 )
+ if ( execve("/sbin/reboot", restart_argv, envp) < 0 )
{
sys_reboot(LINUX_REBOOT_MAGIC1,
LINUX_REBOOT_MAGIC2,
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-26 9:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1Dx9cQ-0006Je-03@xenbits.xensource.com>
2005-07-26 9:58 ` [Xen-changelog] XenLinux restart/poweroff calls 'reboot' or 'poweroff' aq
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.