[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Run a script after creating a domain
[...] > 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |