From: Ian Campbell Subject: Re: [PATCH] systemd: add support initial systemd service files Date: Thu, 13 Mar 2014 09:52:26 +0000 Message-ID: <1394704346.3457.32.camel@kazak.uk.xensource.com> 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> 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 1WO2JU-0004Sg-5S for xen-devel@lists.xenproject.org; Thu, 13 Mar 2014 09:52:32 +0000 In-Reply-To: <53216658.4050605@jajcus.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jacek Konieczny Cc: Stefano Stabellini , Jan =?UTF-8?Q?R=C4=99korajski?= , Ian Jackson , M A Young , xen-devel@lists.xenproject.org, "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org 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? Ian.