This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Run a script after creating a domain
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060914111330.GA32692@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: DB Alliance Ltd.
References: <450893C0.50505@xxxxxxxxxxxxxxx> <200609141147.51791@powerdrag> <20060914111330.GA32692@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.4
>   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 ;)

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

Xen-users mailing list