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

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