diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2022-08-01 13:19:04 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-08-01 13:19:04 -0400 |
commit | 8a835cebb149ba2a54b6518722c79019cf8e3da4 (patch) | |
tree | 99917c6c91d7942b4e29b2cbbb504b414d58e4b0 /systemd | |
parent | 36ce9a29d34e48e1fb5af80ec5258c342e6557df (diff) | |
download | nfs-utils-8a835cebb149ba2a54b6518722c79019cf8e3da4.tar.gz |
rpc-statd.service: Stop rpcbind and rpc.stat in an exit race
When `systemctl stop rpcbind.socket` is run, the dependency means
that systemd first sends SIGTERM to rpcbind, then sigterm to rpc.statd.
On SIGTERM, rpcbind tears down /var/run/rpcbind.sock. However,
rpc-statd on SIGTERM attempts to unregister from rpcbind
systemd needs to wait for rpc.statd to exit before sending
SIGTERM to rpcbind
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2100395
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/rpc-statd.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/rpc-statd.service b/systemd/rpc-statd.service index 095629f..392750d 100644 --- a/systemd/rpc-statd.service +++ b/systemd/rpc-statd.service @@ -5,7 +5,7 @@ Conflicts=umount.target Requires=nss-lookup.target rpcbind.socket Wants=network-online.target Wants=rpc-statd-notify.service -After=network-online.target nss-lookup.target rpcbind.socket +After=network-online.target nss-lookup.target rpcbind.service PartOf=nfs-utils.service IgnoreOnIsolate=yes |