From: Dan Magenheimer Subject: RE: dom0 domU startup autorun script Date: Fri, 11 Sep 2009 09:47:33 -0700 (PDT) Message-ID: <9487c650-98ef-48a8-9587-47734eee273b@default> References: <4AAA76E9.9050702@dataproof.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4AAA76E9.9050702@dataproof.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Valtteri Kiviniemi , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org You mean a script that runs in dom0 when a specific domU starts/shutsdown? A simple way to do this would be to write a shell script that does something like: while xm list | grep -q -w MY_GUEST_NAME; do sleep 1; done; my_shutdown_scr= ipt & and run it in background in dom0. It probably wouldn't be hard to turn this into a generic service that takes a config file like: check_interval 10 GUEST1 start guest1_start_script GUEST1 stop guest1_stop_script GUEST2 start guest2_start_script etc. > -----Original Message----- > From: Valtteri Kiviniemi [mailto:valtteri.kiviniemi@dataproof.fi] > Sent: Friday, September 11, 2009 10:12 AM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] dom0 domU startup autorun script >=20 >=20 > Hi, >=20 > Is it possible to automatically run some script when domU=20 > start or domU=20 > shuts down? I mean that I could make a script run when I start or=20 > shutdown domU. >=20 > -- >=20 > Dataproof > Aleksanterinkatu 7 A 14 > 15110 LAHTI > puh. 0405166397 >=20 > Valtteri Kiviniemi >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >