WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] Re: execve() in reboot.c ?

To: Sean Dague <sean@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: execve() in reboot.c ?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: 2005年7月25日 21:26:16 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2005年7月25日 20:30:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050725201819.GA28226@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D282783@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20050725201819.GA28226@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 25 Jul 2005, at 21:18, Sean Dague wrote:
Additionally modern init supports "powerfail" which is the action to be
triggered when the power fails due to UPS. Using powerfail and ctrlaltdel as the 2 actions would provide the different triggers needed for shutdown.
It would allow for userspace configurability very easily.
Though the original problem could probably be solved just by changing the hard coded user callouts to "/sbin/reboot" and "/sbin/poweroff", which I believe both exist in busybox (or can both exist). Given that other things
like hotplug and modprobe are directly called out from the kernel, this
might be an ok approach.
The latter approach sounds good to me. The commands have obvious names, have sane default behaviour on most distros, can be easily overridden/defined if necessary. I'll go with that. Much better than hooking into all that acpi crap, or an approach that would force users to install xen-specific things in a domU for such a trivial action.
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: execve() in reboot.c ? , Sean Dague
Next by Date: Re: [Xen-devel] execve() in reboot.c ? , Philip R Auld
Previous by Thread: [Xen-devel] Re: execve() in reboot.c ? , Sean Dague
Next by Thread: Re: [Xen-devel] execve() in reboot.c ? , Philip R Auld
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /