Re: [libvirt] [PATCH] use poweroff not halt for virsh shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]