From 84b3b8211148c3c09db6b5ee7f6ca50551537e99 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 11 Jan 2006 22:07:07 +0000 Subject: [PATCH] move the lockfiles for the currently running daemons in %pre --- nfs-utils.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nfs-utils.spec b/nfs-utils.spec index 1d52b17..cdc49f0 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -130,6 +130,13 @@ rm %{buildroot}/%{_sbindir}/rpc.rquotad rm -rf $RPM_BUILD_ROOT %pre +# move files so the running service will have this applied as well +for x in gssd svcgssd idmapd ; do + if [ -f /var/lock/subsys/rpc.$x ]; then + mv /var/lock/subsys/rpc.$x /var/lock/subsys/rpc$x + fi +done + /usr/sbin/useradd -l -c "RPC Service User" -r \ -s /sbin/nologin -u 29 -d /var/lib/nfs rpcuser 2>/dev/null || : # Define the correct unsigned uid value for 32 or 64 bit archs