Blame SOURCES/nfs-utils-2.5.4-systemd-rpcstatd.patch

ee8f10
commit 8a835cebb149ba2a54b6518722c79019cf8e3da4
ee8f10
Author: Benjamin Coddington <bcodding@redhat.com>
ee8f10
Date:   Mon Aug 1 13:19:04 2022 -0400
ee8f10
ee8f10
    rpc-statd.service: Stop rpcbind and rpc.stat in an exit race
ee8f10
    
ee8f10
    When `systemctl stop rpcbind.socket` is run, the dependency means
ee8f10
    that systemd first sends SIGTERM to rpcbind, then sigterm to rpc.statd.
ee8f10
    
ee8f10
    On SIGTERM, rpcbind tears down /var/run/rpcbind.sock.  However,
ee8f10
    rpc-statd on SIGTERM attempts to unregister from rpcbind
ee8f10
    
ee8f10
    systemd needs to wait for rpc.statd to exit before sending
ee8f10
    SIGTERM to rpcbind
ee8f10
    
ee8f10
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2100395
ee8f10
    Signed-off-by: Steve Dickson <steved@redhat.com>
ee8f10
ee8f10
diff --git a/systemd/rpc-statd.service b/systemd/rpc-statd.service
ee8f10
index 095629f2..392750da 100644
ee8f10
--- a/systemd/rpc-statd.service
ee8f10
+++ b/systemd/rpc-statd.service
ee8f10
@@ -5,7 +5,7 @@ Conflicts=umount.target
ee8f10
 Requires=nss-lookup.target rpcbind.socket
ee8f10
 Wants=network-online.target
ee8f10
 Wants=rpc-statd-notify.service
ee8f10
-After=network-online.target nss-lookup.target rpcbind.socket
ee8f10
+After=network-online.target nss-lookup.target rpcbind.service
ee8f10
 
ee8f10
 PartOf=nfs-utils.service
ee8f10
 IgnoreOnIsolate=yes