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

[Xen-devel] Do action after a vm reboots


  • To: <xen-devel@xxxxxxxxxxxxx>
  • From: "Vincent Jancso" <vincent.jancso@xxxxxxxxxxxxx>
  • Date: Tue, 29 Oct 2013 15:24:14 +0100
  • Delivery-date: Tue, 29 Oct 2013 14:24:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac7UsckOW71n8rldTk+zewI/1NRlsA==
  • Thread-topic: Do action after a vm reboots

Hi,

I have a shell script, which will be executed every time I start a vm
with "xm create" or reboot a vm with "xm reboot"

To do this actions, I have edited the following files:

/usr/lib/xen-4.1/lib/python/xen/xm/create.py
/usr/lib/xen-4.1/lib/python/xen/xm/main.py

But if I reboot the vm by directly logging into it and type "reboot" or
"init6", my script won't be executed.

So my question:

Which script/function of xen will be executed, if a user reboot his vm
by typing "reboot" or "init 6" ?

Regards,
Vincent Jancso

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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