linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Calvin Walton <calvin.walton@kepstin.ca>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] nfs-utils: Substitute sbindir in systemd unit files.
Date: Tue, 14 Jul 2015 11:36:35 -0400	[thread overview]
Message-ID: <55A52C83.7040501@RedHat.com> (raw)
In-Reply-To: <1436887369.25203.12.camel@kepstin.ca>

Hello,

On 07/14/2015 11:22 AM, Calvin Walton wrote:
> On Tue, 2015-07-14 at 10:32 -0400, Steve Dickson wrote:
>> Hello Calivn,
>>
>> I'm finally getting back to take a look at this...
>>
>> I see what your are trying to do... Make the systemd scripts
>> use @sbindir@ instead of a hard coded '/usr/sbin/' which 
>> is fine. To do this you are renaming all the systemd 
>> scripts to .in systemd scripts. 
> 
> Not all of them, there's a few I left untouched because they didn't
> need any directory substitutions.
> 
>> But what I'm missing is what actually generates the 
>> systemd scripts with the correct path names?
> 
> At the bottom of the systemd/Makefile.am file, a rule is added to
> generate a ".service" file from a ".service.in" file, which gets called
> automatically by make to generate the files listed in the unit_DATA
> variable.
> 
>> Since you took out the install-data-hook: rule from
>> the Makefile.am file, when I do a make install none
>> of the scripts get installed.... 
> 
> Hmm. I took a look at this; the files don't get installed unless you
> pass "--with-systemd=/usr/lib/systemd/system" (or the equivalent path
> on your system). In particular, using "--with-systemd" with no
> parameter won't work, since they'll get installed to the directory
> "yes" (i.e. the value of the --with-systemd parameter).
I see this... using --with-systemd does get the files created
and installed. 

> 
> This is the same behaviour as before my patch, but it could be improved
> by reworking the configure script a bit (in particular, using pkg
> -config to ask for the system default systemd unit directory).
It would be nice if the files got created and install by 
default (aka not having to specify --with-systemd) and 
not created/install when --without-systemd is used (which
does happen now).

> 
> Do you still want the patches split up between the Makefile changes and
> each individual modified unit file?
> 
No I'm good... just fix the default part and re-post... 

tia!

steved

  reply	other threads:[~2015-07-14 15:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 17:40 [PATCH] nfs-utils: Substitute sbindir in systemd unit files Calvin Walton
2015-04-21 17:43 ` Calvin Walton
2015-07-14 14:32   ` Steve Dickson
2015-07-14 15:22     ` Calvin Walton
2015-07-14 15:36       ` Steve Dickson [this message]
2015-11-02 12:53   ` Steve Dickson
2015-11-02 13:23     ` Calvin Walton
2015-05-06 20:28 ` Steve Dickson
2015-05-06 20:39   ` Calvin Walton
2015-05-07 13:36     ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55A52C83.7040501@RedHat.com \
    --to=steved@redhat.com \
    --cc=calvin.walton@kepstin.ca \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).