From 8d2002551c0e366497416264ebc2b44eaf2c0a0c Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Fri, 19 Jan 2018 12:17:46 -0500 Subject: [PATCH] Restart gssproxy (if running) when the NFS server is started (bz 1527653) Signed-off-by: Steve Dickson --- nfs-utils-2.3.1-systemd-gssproxy-restart.patch | 11 +++++++++++ nfs-utils.spec | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 nfs-utils-2.3.1-systemd-gssproxy-restart.patch diff --git a/nfs-utils-2.3.1-systemd-gssproxy-restart.patch b/nfs-utils-2.3.1-systemd-gssproxy-restart.patch new file mode 100644 index 0000000..8f46e15 --- /dev/null +++ b/nfs-utils-2.3.1-systemd-gssproxy-restart.patch @@ -0,0 +1,11 @@ +diff -up nfs-utils-2.3.1/systemd/nfs-server.service.orig nfs-utils-2.3.1/systemd/nfs-server.service +--- nfs-utils-2.3.1/systemd/nfs-server.service.orig 2018-01-19 10:25:38.153513857 -0500 ++++ nfs-utils-2.3.1/systemd/nfs-server.service 2018-01-19 10:30:52.977245126 -0500 +@@ -26,6 +26,7 @@ Type=oneshot + RemainAfterExit=yes + ExecStartPre=/usr/sbin/exportfs -r + ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ++ExecStart=-/bin/sh -c 'if systemctl -q is-active gssproxy; then systemctl restart gssproxy ; fi' + ExecStop=/usr/sbin/rpc.nfsd 0 + ExecStopPost=/usr/sbin/exportfs -au + ExecStopPost=/usr/sbin/exportfs -f diff --git a/nfs-utils.spec b/nfs-utils.spec index b38d020..0b06e9b 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -19,6 +19,7 @@ Patch100: nfs-utils-1.2.1-statdpath-man.patch Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch Patch102: nfs-utils-1.2.5-idmap-errmsg.patch Patch103: nfs-utils-2.1.1-nfs-config.patch +Patch104: nfs-utils-2.3.1-systemd-gssproxy-restart.patch Provides: exportfs = %{epoch}:%{version}-%{release} Provides: nfsstat = %{epoch}:%{version}-%{release} @@ -318,6 +319,9 @@ fi %{_libdir}/libnfsidmap.so %changelog +* Fri Jan 19 2018 Steve Dickson 2.3.1-2 +- Restart gssproxy (if running) when the NFS server is started (bz 1527653) + * Tue Jan 9 2018 Steve Dickson 2.3.1-1 - Added rpcgen dependency (bz 1531540)