From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacek Konieczny Subject: Re: [PATCH] systemd: add support initial systemd service files Date: Thu, 13 Mar 2014 10:55:01 +0100 Message-ID: <53218075.3020004@jajcus.net> References: <1394582593-8910-1-git-send-email-mcgrof@do-not-panic.com> <532017DC.1000208@jajcus.net> <532023BF.4020807@jajcus.net> <1394623372.21145.36.camel@kazak.uk.xensource.com> <53216658.4050605@jajcus.net> <1394704346.3457.32.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WO2Lw-0004ab-D0 for xen-devel@lists.xenproject.org; Thu, 13 Mar 2014 09:55:09 +0000 In-Reply-To: <1394704346.3457.32.camel@kazak.uk.xensource.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: Stefano Stabellini , =?UTF-8?B?SmFuIFLEmWtvcmFqc2tp?= , Ian Jackson , M A Young , xen-devel@lists.xenproject.org, "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org On 03/13/14 10:52, Ian Campbell wrote: > On Thu, 2014-03-13 at 09:03 +0100, Jacek Konieczny wrote: >> On 03/13/14 01:06, Luis R. Rodriguez wrote: >>> On Wed, Mar 12, 2014 at 5:01 PM, M A Young wrote: >>>>> But this didn't seem to work, I suppose I'm not using the variables >>>>> correctly. >>>> >>>> >>>> Systemd only provides limited variable support - you can use them for >>>> arguments but not the executables. >>> >>> Not even the path to the executables ? ie $FOO/bar >> >> No, and there are some good reasons for that. >> And if anybody really needs to change that after installation, he may >> copy the unit files from /lib/systemd/system to /etc/systemd/system and >> edit them. >> >> Other way would be to use generators to dynamically build the units, but >> I really don't thing there is a good reason for having the paths >> dynamic. > > Would it be preferable to have the Xen build system produce foo.service > from foo.service.in doing the variable substitution at build time? Yes, IMHO, that is the right way to do this. Greets, Jacek