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

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