Blame SOURCES/nfs-utils-2.3.3-systemd-exportfs-nofail.patch

73ac72
commit 003000d451833309c963054e58a48fa1df7e767b
73ac72
Author: Steve Dickson <steved@redhat.com>
73ac72
Date:   Thu Dec 10 13:13:03 2020 -0500
73ac72
73ac72
    exportfs: Ingnore export failures in nfs-server.serivce unit
73ac72
    
73ac72
    With some recent commits, exportfs will continue on trying to
73ac72
    export filesystems even when an entry is invalid or does
73ac72
    not exist, but will still have a non-zero exit to report
73ac72
    the error.
73ac72
    
73ac72
    This situation should not stop the nfs-server service
73ac72
    from comingup so nfs-server.service file should
73ac72
    ignore these types of failures
73ac72
    
73ac72
    Signed-off-by: Steve Dickson <steved@redhat.com>
73ac72
73ac72
diff --git a/systemd/nfs-server.service b/systemd/nfs-server.service
73ac72
index 06c1adb7..b432f910 100644
73ac72
--- a/systemd/nfs-server.service
73ac72
+++ b/systemd/nfs-server.service
73ac72
@@ -21,13 +21,13 @@ After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
73ac72
 [Service]
73ac72
 Type=oneshot
73ac72
 RemainAfterExit=yes
73ac72
-ExecStartPre=/usr/sbin/exportfs -r
73ac72
+ExecStartPre=-/usr/sbin/exportfs -r
73ac72
 ExecStart=/usr/sbin/rpc.nfsd
73ac72
 ExecStop=/usr/sbin/rpc.nfsd 0
73ac72
 ExecStopPost=/usr/sbin/exportfs -au
73ac72
 ExecStopPost=/usr/sbin/exportfs -f
73ac72
 
73ac72
-ExecReload=/usr/sbin/exportfs -r
73ac72
+ExecReload=-/usr/sbin/exportfs -r
73ac72
 
73ac72
 [Install]
73ac72
 WantedBy=multi-user.target