qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] stale pid files?
@ 2007-06-01 10:54 Axel Kittenberger
  2007-06-01 13:47 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Kittenberger @ 2007-06-01 10:54 UTC (permalink / raw)
  To: qemu-devel

Hi list again, another suggestion.

I use the deamons pidfile feature to write pidfiles so I can controll 
the virtual machines with /etc/init.d/bla scripts, to e.g. auto spawn 
the guests when the server starts, auto/start/stop with runlevels and so 
on.. However I got following issue, the daemon wont start if there is a 
pidfile already (yes no problem for user to delete, but for auto 
spawning after unattended boot) . Since e.g. following situation: BANG! 
Powerout! .... System goes up when power is available again. The init 
scripts want to start the qemu/kvm deamons, but they refuse because 
these see their pidfiles already from pre-powerout..

I have seen other daemons somehow locking their pidfiles while running, 
and when killed -9ed, or poweroutes and they start again, they see their 
pid-file is unlocked, thus stale, and just overwrite it... only notifing 
you with a message they did so.

Kind Regards,
Axel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] stale pid files?
  2007-06-01 10:54 [Qemu-devel] stale pid files? Axel Kittenberger
@ 2007-06-01 13:47 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2007-06-01 13:47 UTC (permalink / raw)
  To: qemu-devel

Axel Kittenberger wrote:
> Hi list again, another suggestion.
>
> I use the deamons pidfile feature to write pidfiles so I can controll 
> the virtual machines with /etc/init.d/bla scripts, to e.g. auto spawn 
> the guests when the server starts, auto/start/stop with runlevels and 
> so on.. However I got following issue, the daemon wont start if there 
> is a pidfile already (yes no problem for user to delete, but for auto 
> spawning after unattended boot) . Since e.g. following situation: 
> BANG! Powerout! .... System goes up when power is available again. The 
> init scripts want to start the qemu/kvm deamons, but they refuse 
> because these see their pidfiles already from pre-powerout..

-pidfile behaves properly in CVS.  You may be able to find the patch on 
the ML that fixed it.

Regards,

Anthony Liguori

> I have seen other daemons somehow locking their pidfiles while 
> running, and when killed -9ed, or poweroutes and they start again, 
> they see their pid-file is unlocked, thus stale, and just overwrite 
> it... only notifing you with a message they did so.
>
> Kind Regards,
> Axel
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-01 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 10:54 [Qemu-devel] stale pid files? Axel Kittenberger
2007-06-01 13:47 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).