From: Olaf Hering <olaf@aepfle.de>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd
Date: Tue, 9 Dec 2014 17:27:40 +0100 [thread overview]
Message-ID: <20141209162740.GA14288@aepfle.de> (raw)
In-Reply-To: <21639.7875.160312.349247@mariner.uk.xensource.com>
On Tue, Dec 09, Ian Jackson wrote:
> Olaf Hering writes ("Re: [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd"):
> > On Fri, Dec 05, Ian Jackson wrote:
> > > I think the only way to make this work properly is to factor the
> > > necessary parts out of init.d/xencommons into a new script which can
> > > be used by both xencommons and systemd. I'm not sure such a patch
> > > would be appropriate for 4.5 at this stage.
> >
> > I came up with this, it appears to work in my testing. Will do more
> > testing later today.
>
> Thanks. I think this is going in roughly the right direction.
>
> But: I think the script is rather over-engineered, and that it ought
> to be in /etc.
Why should the wrapper be in /etc?!
xendomains isnt in /etc either.
> > + $(INSTALL_PROG) $(XENSTORED_LIBEXEC) $(DESTDIR)$(LIBEXEC_BIN)
>
> Sysadmins might want to edit the script to do something we haven't
> thought of. So it should be in /etc where they can do so.
So they should mail here if they find substantial functionality missing.
Until then they continue to not enable xencommons and run their own
startup script.
> I don't think this script wants to contain an option parser!
How should it handle exec vs. no-exec? Just a single yes/no knob, so
essentially sysv vs systemd?
> The systemd unit doesn't currently contain anything messing about with
> xenstore-read to detect when xenstored is working. Is that a bug that
> was previously in the systemd unit, or is it a mistake in your patch
> that this is added here ?
No idea how long it takes to have a functional xenstored after running
it. Perhaps the forking has some overhead and it returns earlier than it
can process requests. If thats the reason why the loop exists in the
sysv runlevel script then that loop should be used only without --no-fork.
Olaf
next prev parent reply other threads:[~2014-12-09 16:27 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 12:05 [PATCH 0/5] tools/hotplug: systemd changes for 4.5 Olaf Hering
2014-12-05 12:05 ` [PATCH 1/5] tools/hotplug: move XENSTORED_MOUNT_CTX to sysconfig.xencommons Olaf Hering
2014-12-05 12:20 ` Ian Jackson
2014-12-05 12:26 ` Olaf Hering
2014-12-05 12:32 ` Olaf Hering
2014-12-05 12:43 ` Ian Jackson
2014-12-05 13:27 ` Olaf Hering
2014-12-05 15:01 ` Ian Jackson
2014-12-05 15:35 ` Anthony PERARD
2014-12-05 15:51 ` Olaf Hering
2014-12-05 16:09 ` Anthony PERARD
2014-12-05 12:05 ` [PATCH 2/5] tools/hotplug: use existing sysconfig file for xenconsoled Olaf Hering
2014-12-05 12:05 ` [PATCH 3/5] tools/hotplug: remove EnvironmentFile from xen-qemu-dom0-disk-backend.service Olaf Hering
2014-12-05 12:05 ` [PATCH 4/5] tools/hotplug: remove XENSTORED_ROOTDIR from service file Olaf Hering
2014-12-05 12:21 ` Ian Jackson
2014-12-05 12:05 ` [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd Olaf Hering
2014-12-05 12:24 ` Ian Jackson
2014-12-05 12:30 ` Olaf Hering
2014-12-05 12:51 ` Ian Jackson
2014-12-05 13:31 ` Olaf Hering
2014-12-08 12:37 ` Olaf Hering
2014-12-09 16:09 ` Ian Jackson
2014-12-09 16:27 ` Olaf Hering [this message]
2014-12-09 16:46 ` Ian Jackson
2014-12-10 9:15 ` Olaf Hering
2014-12-10 10:02 ` Ian Campbell
2014-12-10 10:08 ` Olaf Hering
2014-12-10 17:52 ` Olaf Hering
2014-12-12 10:10 ` Ian Campbell
2014-12-12 11:37 ` Olaf Hering
2014-12-12 11:47 ` Ian Campbell
2014-12-12 12:08 ` M A Young
2014-12-12 12:12 ` Olaf Hering
2014-12-12 15:06 ` Olaf Hering
2014-12-10 18:01 ` Olaf Hering
2014-12-12 10:07 ` Ian Campbell
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=20141209162740.GA14288@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--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.