WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Is there a way to get notification, when a domain shutdown/restarts
From: Michal Novotny <minovotn@xxxxxxxxxx>
Date: Fri, 18 Sep 2009 04:01:11 +0200
Delivery-date: Thu, 17 Sep 2009 19:01:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8686c3cd0909160651s663c75f2i1fe7c23efb25ca56@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8686c3cd0909160651s663c75f2i1fe7c23efb25ca56@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3
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