- Make sure /proc/fs/nfsd exists when the nfs init script does the exports

(bz 473396)
This commit is contained in:
Steve Dickson 2008-12-01 13:31:39 +00:00
parent 00239080fe
commit 60a792996d
2 changed files with 10 additions and 6 deletions

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.1.4 Version: 1.1.4
Release: 4%{?dist} Release: 5%{?dist}
Epoch: 1 Epoch: 1
# group all 32bit related archs # group all 32bit related archs
@ -253,6 +253,10 @@ fi
%attr(4755,root,root) /sbin/umount.nfs4 %attr(4755,root,root) /sbin/umount.nfs4
%changelog %changelog
* Mon Dec 1 2008 Steve Dickson <steved@redhat.com> 1.1.4-5
- Make sure /proc/fs/nfsd exists when the nfs init script
does the exports (bz 473396)
* Wed Nov 26 2008 Steve Dickson <steved@redhat.com> 1.1.4-4 * Wed Nov 26 2008 Steve Dickson <steved@redhat.com> 1.1.4-4
- gssd: unblock DNOTIFY_SIGNAL in case it was blocked - gssd: unblock DNOTIFY_SIGNAL in case it was blocked
- Ensure statd gets started if required when non-root - Ensure statd gets started if required when non-root

View File

@ -55,6 +55,11 @@ case "$1" in
# Start daemons. # Start daemons.
[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start [ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start
# Load the nfsd module so /proc/fs/nfsd will exist
[ "$NFSD_MODULE" != "noload" ] && {
[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
}
action $"Starting NFS services: " /usr/sbin/exportfs -r action $"Starting NFS services: " /usr/sbin/exportfs -r
# Set the ports lockd should listen on # Set the ports lockd should listen on
@ -74,11 +79,6 @@ case "$1" in
echo echo
fi fi
# Load preload module so arguments to rpc.nfsd will take effect
[ -n "$RPCNFSDARGS" -a "$NFSD_MODULE" != "noload" ] && {
[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
}
echo -n $"Starting NFS daemon: " echo -n $"Starting NFS daemon: "
daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
RETVAL=$? RETVAL=$?