From: Wei Liu Subject: Re: [PATCH] tools: generate systemd service files only when systemd is available Date: Tue, 20 Jan 2015 15:37:32 +0000 Message-ID: <20150120153732.GE30340@zion.uk.xensource.com> References: <1421754466-3980-1-git-send-email-wei.liu2@citrix.com> <21694.27368.62403.68165@mariner.uk.xensource.com> <20150120151204.GD30340@zion.uk.xensource.com> <1421767171.10440.287.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1421767171.10440.287.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Ian Jackson , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Jan 20, 2015 at 03:19:31PM +0000, Ian Campbell wrote: > On Tue, 2015-01-20 at 15:12 +0000, Wei Liu wrote: > > On Tue, Jan 20, 2015 at 02:49:12PM +0000, Ian Jackson wrote: > > > Wei Liu writes ("[PATCH] tools: generate systemd service files only when systemd is available"): > > > > Though that's not in any way harmful but it is on the other hand not > > > > very useful. > > > > > > What is the effect of this in the context of a distro package, where > > > the build may occur in a different situation to the installed > > > package ? > > > > > > > Not sure if I understand you question but let me try to answer. > > > > Conceptually speaking for Xen's systemd components to function properly > > the service files may need to rely on other components to be built. > > Where components is things like socket activation support in xenstored > etc, I think? Or is there more to it? > Yes. [c/o]xenstored needs to link against systemd to use socket activation. That's the only thing at the moment. I was just speaking about things in general -- in case we have some more daemons that need to link against systemd. Wei. > > If > > systemd is not available at build time that means those components which > > service files rely on cannot be built, so the service files alone aren't > > very useful even if you generate and package them. > > > > Practically speaking those service files don't depend on any systemd > > specific components to be built at the moment so it's harmless to > > package them. > > > > Wei. > > > > > Ian. >