From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-f42.google.com ([209.85.215.42]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XZIgv-0002yS-Hq for ptxdist@pengutronix.de; Wed, 01 Oct 2014 14:07:34 +0200 Received: by mail-la0-f42.google.com with SMTP id mk6so185874lab.15 for ; Wed, 01 Oct 2014 05:06:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140930081226.GE24288@pengutronix.de> References: <1412050724-11845-1-git-send-email-jon@ringle.org> <20140930081226.GE24288@pengutronix.de> Date: Wed, 1 Oct 2014 08:06:42 -0400 Message-ID: From: Jon Ringle Subject: Re: [ptxdist] [PATCH 1/2] systemd: install_alternative_tree /lib/systemd/system/ Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1537652505==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============1537652505== Content-Type: multipart/alternative; boundary=089e01419b1c423e7305045b5546 --089e01419b1c423e7305045b5546 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 30, 2014 at 4:12 AM, Michael Olbrich wrote: > On Tue, Sep 30, 2014 at 12:18:43AM -0400, jon@ringle.org wrote: > > From: Jon Ringle > > > > This allows platform specific customizations to /lib/systemd/system/ to > > be installed on the target > > > > Signed-off-by: Jon Ringle > > --- > > rules/systemd.make | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/rules/systemd.make b/rules/systemd.make > > index ff3d606..51ffcac 100644 > > --- a/rules/systemd.make > > +++ b/rules/systemd.make > > @@ -303,7 +303,7 @@ ifdef PTXCONF_SYSTEMD_NETWORK > > endif > > > > # # units > > - @$(call install_tree, systemd, 0, 0, -, /lib/systemd/system/) > > + @$(call install_alternative_tree, systemd, 0, 0, > /lib/systemd/system/) > > Are you sure, this is what you want? install_alternative_tree replaces the > entire tree, not individual files. You can overwrite individual files by > placing your copy in /etc/systemd/system/. > > Normally, systemd enable/disable will create/remove a symlink from /etc/systemd/system/ to the corresponding file in /lib/systemd/system/. If I put a real file in /etc/systemd/system/, how will systemd handle enable/disable of a service? Jon --089e01419b1c423e7305045b5546 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Sep 30, 2014 at 4:12 AM, Michael Olbrich <m.olbrich@pengutroni= x.de> wrote:
On Tue, Sep 30, 2014 at 12:18:43AM -0400, jon@ringle.org wrote:
> From: Jon Ringle <jringle@= gridpoint.com>
>
> This allows platform specific customizations to /lib/systemd/system/ t= o
> be installed on the target
>
> Signed-off-by: Jon Ringle <jringle@gridpoint.com>
> ---
>=C2=A0 rules/systemd.make | 2 +-
>=C2=A0 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/systemd.make b/rules/systemd.make
> index ff3d606..51ffcac 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -303,7 +303,7 @@ ifdef PTXCONF_SYSTEMD_NETWORK
>=C2=A0 endif
>
>=C2=A0 #=C2=A0 =C2=A0 # units
> -=C2=A0 =C2=A0 =C2=A0@$(call install_tree, systemd, 0, 0, -, /lib/syst= emd/system/)
> +=C2=A0 =C2=A0 =C2=A0@$(call install_alternative_tree, systemd, 0, 0, = /lib/systemd/system/)

Are you sure, this is what you want? install_alternative_tree replac= es the
entire tree, not individual files. You can overwrite individual files by placing your copy in /etc/systemd/system/.


Normally, systemd enable/disable will = create/remove a symlink from /etc/systemd/system/ to the corresponding file= in /lib/systemd/system/. If I put a real file in /etc/systemd/system/, how= will systemd handle enable/disable of a service?

= Jon
--089e01419b1c423e7305045b5546-- --===============1537652505== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1537652505==--