From: Tom Rotenberg Subject: Re: Is there a way to get notification, when a domain shutdown/restarts Date: Mon, 21 Sep 2009 14:25:14 +0300 Message-ID: <8686c3cd0909210425v367b1a73t907e98c9df539352@mail.gmail.com> References: <8686c3cd0909160651s663c75f2i1fe7c23efb25ca56@mail.gmail.com> <4AB2E9E7.6010704@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <4AB2E9E7.6010704@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Michal Novotny Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >