Blame SOURCES/nfs-utils-1.3.0-systemd-config.patch

e19a30
commit c4940fad2a73481cad67732746a4e2bb74e8d32e
e19a30
Author: NeilBrown <neilb@suse.com>
e19a30
Date:   Wed Mar 16 12:18:40 2016 -0400
e19a30
e19a30
    systemd: ensure nfs-config service is re-run as needed.
e19a30
    
e19a30
    The nfs-config service translates distro-specific startup
e19a30
    configuration into "environment" variable read and used
e19a30
    by systemd unit files.
e19a30
    
e19a30
    Currently it is only run once, so subsequent changes to the
e19a30
    distro-specific files do not take effect when an nfs service is
e19a30
    restarted.
e19a30
    
e19a30
    If we change "RemainAfterExit=yes" to "RemainAfterExit=no" then the
e19a30
    service will be restarted before any dependant service is started, so
e19a30
    the environment file will always be up to date.
e19a30
    
e19a30
    Reported-and-tested-by: Benjamin Coddington <bcodding@redhat.com>
e19a30
    Signed-off-by: NeilBrown <neilb@suse.com>
e19a30
    Signed-off-by: Steve Dickson <steved@redhat.com>
e19a30
e19a30
diff --git a/systemd/nfs-config.service b/systemd/nfs-config.service
e19a30
index 7f65305..4b206b5 100644
e19a30
--- a/systemd/nfs-config.service
e19a30
+++ b/systemd/nfs-config.service
e19a30
@@ -5,5 +5,9 @@ DefaultDependencies=no
e19a30
 
e19a30
 [Service]
e19a30
 Type=oneshot
e19a30
-RemainAfterExit=yes
e19a30
+# This service needs to run any time any nfs service
e19a30
+# is started, so changes to local config files get
e19a30
+# incorporated.  Having "RemainAfterExit=no" (the default)
e19a30
+# ensures this happens.
e19a30
+RemainAfterExit=no
e19a30
 ExecStart=/usr/lib/systemd/scripts/nfs-utils_env.sh