Restart gssproxy (if running) when the NFS server is started (bz 1527653)

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2018-01-19 12:17:46 -05:00
parent 13b0955ae3
commit 8d2002551c
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -19,6 +19,7 @@ Patch100: nfs-utils-1.2.1-statdpath-man.patch
Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch
Patch102: nfs-utils-1.2.5-idmap-errmsg.patch Patch102: nfs-utils-1.2.5-idmap-errmsg.patch
Patch103: nfs-utils-2.1.1-nfs-config.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: exportfs = %{epoch}:%{version}-%{release}
Provides: nfsstat = %{epoch}:%{version}-%{release} Provides: nfsstat = %{epoch}:%{version}-%{release}
@ -318,6 +319,9 @@ fi
%{_libdir}/libnfsidmap.so %{_libdir}/libnfsidmap.so
%changelog %changelog
* Fri Jan 19 2018 Steve Dickson <steved@redhat.com> 2.3.1-2
- Restart gssproxy (if running) when the NFS server is started (bz 1527653)
* Tue Jan 9 2018 Steve Dickson <steved@redhat.com> 2.3.1-1 * Tue Jan 9 2018 Steve Dickson <steved@redhat.com> 2.3.1-1
- Added rpcgen dependency (bz 1531540) - Added rpcgen dependency (bz 1531540)