[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] use poweroff not halt for virsh shutdown
- From: "Daniel P. Berrange" <berrange redhat com>
- To: John Levon <levon movementarian org>
- Cc: libvirt-list redhat com
- Subject: Re: [libvirt] [PATCH] use poweroff not halt for virsh shutdown
- Date: Thu, 28 Aug 2008 16:13:24 +0100
On Thu, Aug 28, 2008 at 03:05:32PM +0100, John Levon wrote:
>
> "halt" means just that, and we want to "poweroff". Linux doesn't care,
> but Solaris differentiates between the two.
ACK, confirmed Linux treats them identically
drivers/xen/core/reboot.c
THe control/shutdown xenstore watch fires shutdown_handler(), which
sets up a job for __shutdown_handler(), which runs shutdown_process()
which does
if ((shutting_down == SHUTDOWN_POWEROFF) ||
(shutting_down == SHUTDOWN_HALT)) {
if (call_usermodehelper("/sbin/poweroff", poweroff_argv,
envp, 0) < 0) {
Semantically 'poweroff' is what we're wanting for virDomainShutdown().
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]