Cleaned up the .preconfig and .postconfig files per code review request.

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2011-08-03 15:02:59 -04:00
parent 170522c6b8
commit eff46c41a5
4 changed files with 18 additions and 13 deletions

View File

@ -8,10 +8,10 @@
# See if the kernel lockd should start up # See if the kernel lockd should start up
# listening on a particular port # listening on a particular port
# #
if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then if [ -n "$LOCKD_TCPPORT" ]; then
[ -n "$LOCKD_TCPPORT" ] && \
/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1 /sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
[ -n "$LOCKD_UDPPORT" ] && \ fi
if [ -n "$LOCKD_UDPPORT" ]; then
/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1 /sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
fi fi

View File

@ -8,10 +8,11 @@
# #
# Enabled the RDMA server support if configured to do so. # Enabled the RDMA server support if configured to do so.
# #
# Make sure the modules is loaded # Load the module and then enable the server to listen
[ -n "$RDMA_PORT" ] && /sbin/modprobe svcrdma # on the given port
if [ -n "$RDMA_PORT" ]; then
# Enable the server to listen on the given port /sbin/modprobe svcrdma
[ -n "$RDMA_PORT" ] && echo "rdma $RDMA_PORT" > /proc/fs/nfsd/portlist echo "rdma $RDMA_PORT" > /proc/fs/nfsd/portlist
fi
exit 0 exit 0

View File

@ -3,8 +3,8 @@
. /etc/sysconfig/nfs . /etc/sysconfig/nfs
# Set v4 grace period if requested # Set v4 grace period if requested
[ -n "$NFSD_V4_GRACE" ] && { if [ -n "$NFSD_V4_GRACE" ]; then
echo "$NFSD_V4_GRACE" > /proc/fs/nfsd/nfsv4gracetime echo "$NFSD_V4_GRACE" > /proc/fs/nfsd/nfsv4gracetime
} fi
exit 0 exit 0

View File

@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
Name: nfs-utils Name: nfs-utils
URL: http://sourceforge.net/projects/nfs URL: http://sourceforge.net/projects/nfs
Version: 1.2.4 Version: 1.2.4
Release: 4%{?dist} Release: 5%{?dist}
Epoch: 1 Epoch: 1
# group all 32bit related archs # group all 32bit related archs
@ -58,11 +58,11 @@ BuildRequires: libgssglue-devel libevent-devel libcap-devel
BuildRequires: libnfsidmap-devel libtirpc-devel libblkid-devel BuildRequires: libnfsidmap-devel libtirpc-devel libblkid-devel
BuildRequires: krb5-libs >= 1.4 autoconf >= 2.57 openldap-devel >= 2.2 BuildRequires: krb5-libs >= 1.4 autoconf >= 2.57 openldap-devel >= 2.2
BuildRequires: automake, libtool, glibc-headers BuildRequires: automake, libtool, glibc-headers
BuildRequires: krb5-devel, tcp_wrappers-devel, libmount-devel >= 2.20 BuildRequires: krb5-devel, tcp_wrappers-devel, libmount-devel
Requires(pre): shadow-utils >= 4.0.3-25 Requires(pre): shadow-utils >= 4.0.3-25
Requires(pre): /sbin/chkconfig /sbin/nologin Requires(pre): /sbin/chkconfig /sbin/nologin
Requires: libnfsidmap libgssglue libevent Requires: libnfsidmap libgssglue libevent
Requires: libtirpc libblkid libcap libmount >= 2.20 Requires: libtirpc libblkid libcap libmount
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
@ -265,6 +265,10 @@ fi
%attr(4755,root,root) /sbin/umount.nfs4 %attr(4755,root,root) /sbin/umount.nfs4
%changelog %changelog
* Wed Aug 3 2011 Steve Dickson <steved@redhat.com> 1.2.4-5
- Cleaned up the .preconfig and .postconfig files per
code review request.
* Wed Aug 3 2011 Steve Dickson <steved@redhat.com> 1.2.4-4 * Wed Aug 3 2011 Steve Dickson <steved@redhat.com> 1.2.4-4
- Converted init scrips to systemd services. (bz 699040) - Converted init scrips to systemd services. (bz 699040)
- Made nfsnobody's uid/gid to always be a 16-bit value of -2 - Made nfsnobody's uid/gid to always be a 16-bit value of -2