linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Install only needed systemd unit file
@ 2015-07-20 21:41 Aurélien Chabot
  2015-09-15 18:26 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Aurélien Chabot @ 2015-07-20 21:41 UTC (permalink / raw)
  To: linux-nfs; +Cc: Aurélien Chabot

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
---
 systemd/Makefile.am | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/systemd/Makefile.am b/systemd/Makefile.am
index fbcabb1..0331926 100644
--- a/systemd/Makefile.am
+++ b/systemd/Makefile.am
@@ -5,21 +5,33 @@ MAINTAINERCLEANFILES = Makefile.in
 unit_files =  \
     nfs-client.target \
     \
-    auth-rpcgss-module.service \
-    nfs-blkmap.service \
     nfs-config.service \
-    nfs-idmapd.service \
     nfs-mountd.service \
     nfs-server.service \
     nfs-utils.service \
-    rpc-gssd.service \
     rpc-statd-notify.service \
     rpc-statd.service \
-    rpc-svcgssd.service \
     \
     proc-fs-nfsd.mount \
     var-lib-nfs-rpc_pipefs.mount
 
+if CONFIG_NFSV4
+unit_files += \
+    nfs-idmapd.service
+endif
+
+if CONFIG_NFSV41
+unit_files += \
+    nfs-blkmap.service
+endif
+
+if CONFIG_GSS
+unit_files += \
+    auth-rpcgss-module.service \
+    rpc-gssd.service \
+    rpc-svcgssd.service
+endif
+
 EXTRA_DIST = $(unit_files)
 
 unit_dir = /usr/lib/systemd/system
-- 
2.4.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Install only needed systemd unit file
  2015-07-20 21:41 [PATCH] Install only needed systemd unit file Aurélien Chabot
@ 2015-09-15 18:26 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2015-09-15 18:26 UTC (permalink / raw)
  To: Aurélien Chabot, linux-nfs



On 07/20/2015 05:41 PM, Aurélien Chabot wrote:
> Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
> ---
>  systemd/Makefile.am | 22 +++++++++++++++++-----
>  1 file changed, 17 insertions(+), 5 deletions(-)
Committed.... 

Note, I also found an issue with the --with-systemd flag
which was fixed by:

commit 017164521b94018bd143b879b0e858d98cca83e8
Author: Steve Dickson <steved@redhat.com>
Date:   Tue Sep 15 14:16:42 2015 -0400

    configure.ac: with-systemd flag not using default directory
    
    The with-systemd config flag was not using the
    default directory when a directory was not given
    
    Signed-off-by: Steve Dickson <steved@redhat.com>

steved.

> 
> diff --git a/systemd/Makefile.am b/systemd/Makefile.am
> index fbcabb1..0331926 100644
> --- a/systemd/Makefile.am
> +++ b/systemd/Makefile.am
> @@ -5,21 +5,33 @@ MAINTAINERCLEANFILES = Makefile.in
>  unit_files =  \
>      nfs-client.target \
>      \
> -    auth-rpcgss-module.service \
> -    nfs-blkmap.service \
>      nfs-config.service \
> -    nfs-idmapd.service \
>      nfs-mountd.service \
>      nfs-server.service \
>      nfs-utils.service \
> -    rpc-gssd.service \
>      rpc-statd-notify.service \
>      rpc-statd.service \
> -    rpc-svcgssd.service \
>      \
>      proc-fs-nfsd.mount \
>      var-lib-nfs-rpc_pipefs.mount
>  
> +if CONFIG_NFSV4
> +unit_files += \
> +    nfs-idmapd.service
> +endif
> +
> +if CONFIG_NFSV41
> +unit_files += \
> +    nfs-blkmap.service
> +endif
> +
> +if CONFIG_GSS
> +unit_files += \
> +    auth-rpcgss-module.service \
> +    rpc-gssd.service \
> +    rpc-svcgssd.service
> +endif
> +
>  EXTRA_DIST = $(unit_files)
>  
>  unit_dir = /usr/lib/systemd/system
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-15 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 21:41 [PATCH] Install only needed systemd unit file Aurélien Chabot
2015-09-15 18:26 ` Steve Dickson

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).