All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: Is there a way to get notification,	when a domain shutdown/restarts
Date: Fri, 18 Sep 2009 04:01:11 +0200	[thread overview]
Message-ID: <4AB2E9E7.6010704@redhat.com> (raw)
In-Reply-To: <8686c3cd0909160651s663c75f2i1fe7c23efb25ca56@mail.gmail.com>

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
>    

  reply	other threads:[~2009-09-18  2:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16 13:51 Is there a way to get notification, when a domain shutdown/restarts Tom Rotenberg
2009-09-18  2:01 ` Michal Novotny [this message]
2009-09-21 11:25   ` Tom Rotenberg
2009-09-21 16:39     ` Bruce Edge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AB2E9E7.6010704@redhat.com \
    --to=minovotn@redhat.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.