[Pkg-xen-devel] Bug#655301: Bug#655301: Bug#655301: Bug#655301: Bug#655301: xcp-xapi fails to start

Ian Campbell ijc at hellion.org.uk
Tue Jan 17 17:15:31 UTC 2012


On Tue, 2012-01-17 at 22:12 +0530, Ritesh Raj Sarraf wrote:
> On 01/17/2012 06:33 PM, Mike McClurg wrote:
(hrm, I seem not to have received this)
> > I think that we put a line in the xcp-xapi init script that quit
> > without error if it found a xend pid file. This means that to start
> > xapi you need to either 1) edit /etc/init.d/xend so that xend is never
> > actually run, or 2) first let xend start, and then do 'service xend
> > stop' to kill xend, and then do a 'service xcp-xapi start'.
> > 
> > Neither of those is very attractive. Perhaps we could instead have the
> > user create a /etc/default/xen file, which will contain a
> > "TOOLSTACK=foo" line. If that file exists, and only if TOOLSTACK=xapi,
> > we could then, within the xcp-xapi init script, check to see if xend
> > is running, and if so, shut it down. This allows us to use xend as a
> > common xen init script, but forces the user to explicitly say that
> > they want to use xapi over xend.
> > 
> > I would feel better about killing xend from within the xcp-xapi init
> > file if we were to it this way. Thoughts?

It is never appropriate for one initscript to kill a daemon controlled
by another one. (I hope it is obvious why).

We've been through this conversation before. The xend initscript should
not start xend unless TOOLSTACK=xend. If xapi has needs things like this
then it needs to *co-operate* with the other toolstacks and their
initscripts, not start unilaterally killing stuff. Please send patches
to implement what you need in the xend initscript (and elsewhere).

> You should just do all the stuff, that you expect from xend, inside
> xcp-xapi. xend is a separate stack which will interest some users.

Ideally the common stuff which the xend initscript does would be
factored out but Bastian seems to think there is some issue with this.
That doesn't conflict with the above though.

Ian.

> 
> Similarly, if xend is not really needed by xcp, I'd rather want to purge
> it and only have xcp.
> 
> _______________________________________________
> Pkg-xen-devel mailing list
> Pkg-xen-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xen-devel

-- 
Ian Campbell
Current Noise: Red Hot Chili Peppers - If You Have To Ask

pediddel:
	A car with only one working headlight.
		-- "Sniglets", Rich Hall & Friends






More information about the Pkg-xen-devel mailing list