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

Re: [Xen-devel] Is there a way to get notification, when a domain shutdown/restarts


  • To: Michal Novotny <minovotn@xxxxxxxxxx>
  • From: Tom Rotenberg <tom.rotenberg@xxxxxxxxx>
  • Date: Mon, 21 Sep 2009 14:25:14 +0300
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 21 Sep 2009 04:25:40 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xnqXnIxX+0il5yuLTZ+UFTV6J64iCK6F5vmqpPNDSWD0jdh9VFg1qpQhWSTWflxIi5 tdLT3XD0ms25sa9IFSo17bHt9wbI/7WJtTEKmyqLgZZpp4AKtmwnhHzB5ZwCXy3GEyg0 BdrdD9ZFFbwBXYHXjx5/KgDXxcZsraUep/wNg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Well, i was looking for a solution, which won't require me to modify
teh code, but to use an already-built mechaism for this, but i guess
none exists, so i'll modify the code for this.

Thanks!


On Fri, Sep 18, 2009 at 5:01 AM, Michal Novotny <minovotn@xxxxxxxxxx> wrote:
> On 09/16/2009 03:51 PM, Tom Rotenberg wrote:
>>
>> Hi,
>>
>> I would like to write a script, which will run, every time my
>> (specific) domain reboots or shutdown. Is there any way, to "catch"
>> those events, or to be notified when it happens?
>>
>> Tom
>>
>
> Hi Tom,
> I am not sure about that but you can modify python script to call this
> script in this event. There should be some method to be called every time
> the domain reboots/shuts down. There you can add a call to you script or
> write it purely in python. I think it's somewhere in XendDomainInfo.py file
> somewhere in python site-packages directory.
>
> Michal
>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.