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 
 
Home Products Support Community News
 
   
 

xen-devel

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


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