From: Ian Jackson Subject: Re: [PATCH 7/7] tools/hotplug: add wrapper to start xenstored Date: Tue, 6 Jan 2015 14:58:31 +0000 Message-ID: <21675.63511.6868.847055@mariner.uk.xensource.com> References: <1418988333-5404-1-git-send-email-olaf@aepfle.de> <1418988333-5404-8-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1418988333-5404-8-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , Ian Campbell , Stefano Stabellini , xen-devel@lists.xen.org, m.a.young@durham.ac.uk List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[PATCH 7/7] tools/hotplug: add wrapper to start xenstored"): > The shell wrapper in xenstored.service does not handle XENSTORE_TRACE. ... > +XENSTORED_LIBEXEC = xenstored.sh Should be in /etc as previously discussed. Previously I wrote: Bottom line: as relevant maintainer, I'm afraid I'm going to insist that this script be in /etc. I'm disappointed. It is not acceptable to resubmit a change ignoring such unequivocal feedback. Nacked-by: Ian Jackson > +hotplug/Linux/xenstored.sh Although many of the existing hotplug scripts have this notion of calling things "foo.sh" because they happen to be written in shell, I think this is bad practice. I would prefer xenstored-wrap or some such. (My co-maintainers may disagree...) But this is a bit of a bikeshed issue. > echo -n Starting $XENSTORED... > - $XENSTORED --pid-file /var/run/xenstored.pid $XENSTORED_ARGS > + XENSTORED=$XENSTORED \ > + XENSTORED_TRACE=$XENSTORED_TRACE \ > + XENSTORED_ARGS=$XENSTORED_ARGS \ > + ${LIBEXEC_BIN}/xenstored.sh --pid-file /var/run/xenstored.pid It might be easier to "." xenstore-wrap. Failing that using `export' will avoid this rather odd and repetitive style. > diff --git a/tools/hotplug/Linux/xenstored.sh.in b/tools/hotplug/Linux/xenstored.sh.in > new file mode 100644 > index 0000000..dc806ee > --- /dev/null > +++ b/tools/hotplug/Linux/xenstored.sh.in > @@ -0,0 +1,6 @@ > +#!/bin/sh > +if test -n "$XENSTORED_TRACE" > +then > + XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log" > +fi > +exec $XENSTORED $@ $XENSTORED_ARGS This should probably have "" around "$@" just in case. Thanks, Ian.