Re: [patch 8/9] Implement better signal handling

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

 



On Fri, Feb 16, 2007 at 02:44:46PM +0000, Mark McLoughlin wrote:
> Handle SIGHUP by shutting down all guests and networks
> and re-loading configs

This violates the 'principle of least surprise'. I certainly do not expect
a config file reload to terminate all active guests. Since QEMU is a full
virt system, there is no graceful shutdown process, and so this is equivalent
to ripping the power cable out of all your VMs. IMHO this makes SIGHUP
essentially useless.

We already have the ability to store a secondary config against any active
guest VMs, which will be automatically activated upon next boot of the 
guest - this is how we let virDefineDomain()  override the config of an
existing VM.  IMHO, sending SIGHUP to the daemon should just scan for
config files and if any VMs are active, load into the secondary config.

> 
> Handle SIGTERM/SIGINT by cleanly shutting down

Ack, this is desirable. We should also hook in SIGQUIT

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 


[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]