diff --git a/nfs-utils.spec b/nfs-utils.spec index c97d2c6..2d3bd72 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -265,9 +265,10 @@ fi %attr(4755,root,root) /sbin/umount.nfs4 %changelog -* Tue Sep 16 2008 Steve Dickson 1.1.3-5 +* Thu Sep 18 2008 Steve Dickson 1.1.3-5 - Reworked init scripts so service will be able to stop when some of the checks fail. (bz 462508) +- Pre-load nfsd when args to rpc.nfsd are given (bz 441983) * Thu Aug 28 2008 Steve Dickson 1.1.3-4 - Added in a number of up upstream patches (101 thru 110). diff --git a/nfs.init b/nfs.init index 73f42ac..e26e9e7 100755 --- a/nfs.init +++ b/nfs.init @@ -73,6 +73,12 @@ case "$1" in RETVAL=$? echo 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: " daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT RETVAL=$? diff --git a/nfs.sysconfig b/nfs.sysconfig index 940c7b2..925d063 100644 --- a/nfs.sysconfig +++ b/nfs.sysconfig @@ -31,6 +31,8 @@ # Number of nfs server processes to be started. # The default is 8. #RPCNFSDCOUNT=8 +# Stop the nfsd module from being pre-loaded +#NFSD_MODULE="noload" # # # Optional arguments passed to rpc.mountd. See rpc.mountd(8)