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

Re: [Xen-users] Run a script after creating a domain


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Tom Z. Napierala" <tom@xxxxxx>
  • Date: Thu, 14 Sep 2006 16:02:51 +0100
  • Delivery-date: Thu, 14 Sep 2006 08:03:40 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

[...]
>   I think the OP was more interested in running a script after the
>  new domain had started - rather than after it had been created for
>  the first time.

You're absolutely right, I misunderstood the question

>   My solution would be to right a shell script:
>
>   #!/bin/sh
>   # /usr/local/bin/start-vm
>   #
>   if [ -z "${1}"  ]; then echo "Usage: $0 domain; fi
>
>   xm create ${1}
>   if [ -x /etc/xen/${1}.sh ]; then
>     /etc/xen/${1}.sh
>   fi
>
>   That will run "domain.sh" after starting "domain".

Thank's for the snippet, very handy.

BTW. Big thanks for your tools David. I didn't have chance to say "thanks" 
before, so here you have ;)

Regards,
-- 
Tom Napierala
DB Alliance Limited
North Point House, New Mallow Road, Cork, Ireland
The National Software Centre, Mahon, Cork, Ireland


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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