diff --git a/nfs-utils.spec b/nfs-utils.spec index 412353d..7fa3c51 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,7 +1,7 @@ -Summary: NFS utlilities and supporting daemons for the kernel NFS server. +Summary: NFS utilities and supporting daemons for the kernel NFS server. Name: nfs-utils Version: 0.3.1 -Release: 11 +Release: 12 Source0: ftp://nfs.sourceforge.net/pub/nfs/nfs-utils-%{version}.tar.gz Source1: ftp://nfs.sourceforge.net/pub/nfs/nfs.doc.tar.gz Source10: nfs.init @@ -26,18 +26,17 @@ Provides: knfsd-clients Provides: knfsd License: GPL Buildroot: %{_tmppath}/%{name}-root -Requires: kernel >= 2.2.14, portmap >= 4.0, sed, gawk, sh-utils +Requires: kernel >= 2.2.14, portmap >= 4.0, sed, gawk, sh-utils, fileutils Prereq: /sbin/chkconfig /usr/sbin/useradd /sbin/nologin %description The nfs-utils package provides a daemon for the kernel NFS server and -related tools, which provides a much higher level of performance than the +related tools, providing a much higher level of performance than the traditional Linux NFS server used by most users. -This package also contains the showmount program. Showmount queries the -mount daemon on a remote host for information about the NFS (Network File -System) server on the remote host. For example, showmount can display the -clients which are mounted on that host. +This package also contains the showmount program. Showmount queries +the mount daemon on a remote host for information about the NFS +(Network File System) server on the remote host. %prep %setup -q -a 1 @@ -127,6 +126,9 @@ fi %config /etc/rc.d/init.d/nfslock %changelog +* Tue Aug 7 2001 Bob Matthews +- nfs init script shouldn't fail if /etc/exports doesn't exist (#46432) + * Fri Jul 13 2001 Bob Matthews - Make %pre useradd consistent with other Red Hat packages. diff --git a/nfs.init b/nfs.init index 115004a..f567ab6 100755 --- a/nfs.init +++ b/nfs.init @@ -25,7 +25,11 @@ fi [ -x /usr/sbin/rpc.nfsd ] || exit 0 [ -x /usr/sbin/rpc.mountd ] || exit 0 [ -x /usr/sbin/exportfs ] || exit 0 -[ -s /etc/exports ] || exit 0 + +# Don't fail if /etc/exports doesn't exist; create a bare-bones version and continue. +[ -s /etc/exports ] || \ + { echo "#" > /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \ + { echo "/etc/exports does not exist" ; exit 0 ; } # Number of servers to be started by default RPCNFSDCOUNT=8