All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Anthony PERARD <anthony.perard@citrix.com>
Cc: olaf@aepfle.de, Wei Liu <wei.liu2@citrix.com>,
	ian.campbell@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH 3/3] systemd: xendomains now depends on xen-init-dom0
Date: Wed, 22 Oct 2014 13:07:02 +0100	[thread overview]
Message-ID: <20141022120702.GC5087@zion.uk.xensource.com> (raw)
In-Reply-To: <20141022115724.GE8718@perard.uk.xensource.com>

On Wed, Oct 22, 2014 at 12:57:24PM +0100, Anthony PERARD wrote:
> On Tue, Oct 21, 2014 at 10:56:12AM +0100, Wei Liu wrote:
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > ---
> >  tools/hotplug/Linux/systemd/xendomains.service.in |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tools/hotplug/Linux/systemd/xendomains.service.in b/tools/hotplug/Linux/systemd/xendomains.service.in
> > index f88c336..8577317 100644
> > --- a/tools/hotplug/Linux/systemd/xendomains.service.in
> > +++ b/tools/hotplug/Linux/systemd/xendomains.service.in
> > @@ -1,7 +1,7 @@
> >  [Unit]
> >  Description=Xendomains - start and stop guests on boot and shutdown
> >  Requires=xenstored.socket
> > -After=xenstored.service xenconsoled.service
> > +After=xenstored.service xenconsoled.service xen-init-dom0.service
> >  ConditionVirtualization=xen
> 
> Having a service listed in After does not mean a service depends on the
> other. It just mean: run xendomains.service after xen-init-dom0.service,
> but xen-init-dom0.service might not run at all..
> 
> If xen-init-dom0.service needs to be run before xendomains.service, you
> also need to add it to the Requires list.
> 

Then I must have misread the manual

"After= ensures that the configured unit is started after the listed
unit finished starting up"

Looks like "finished starting up" doesn't guarantee it exits with
success?

> So the patch should probably look like this:
> -Requires=xenstored.socket
> -After=xenstored.service xenconsoled.service
> +Requires=xenstored.socket xen-init-dom0.service
> +After=xenstored.service xenconsoled.service xen-init-dom0.service
> 
> (This also means, if xen-init-dom0 fail, xendomains will not be started
> at all.)
> 

Anyway, this looks sensible and it's what I expect. I will add in that
line.

Wei.



> -- 
> Anthony PERARD

      reply	other threads:[~2014-10-22 12:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  9:56 [PATCH 0/3] tools: systemd patches Wei Liu
2014-10-21  9:56 ` [PATCH 1/3] systemd: fix clean target in Makefile Wei Liu
2014-10-22 11:22   ` Ian Campbell
2014-10-22 20:23     ` Konrad Rzeszutek Wilk
2014-10-21  9:56 ` [PATCH 2/3] systemd: add xen-init-dom0 service Wei Liu
2014-10-22 11:23   ` Ian Campbell
2014-10-23 16:05   ` Anthony PERARD
2014-10-23 16:48     ` Olaf Hering
2014-10-23 17:01       ` Wei Liu
2014-10-21  9:56 ` [PATCH 3/3] systemd: xendomains now depends on xen-init-dom0 Wei Liu
2014-10-22 11:23   ` Ian Campbell
2014-10-22 11:57   ` Anthony PERARD
2014-10-22 12:07     ` Wei Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141022120702.GC5087@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=olaf@aepfle.de \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.