move the lockfiles for the currently running daemons in %pre

This commit is contained in:
Peter Jones 2006-01-11 22:07:07 +00:00
parent ba86d8916c
commit 84b3b82111

View File

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