summaryrefslogtreecommitdiffstats
path: root/source/n/nfs-utils/rc.nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/nfs-utils/rc.nfsd')
-rw-r--r--source/n/nfs-utils/rc.nfsd13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/n/nfs-utils/rc.nfsd b/source/n/nfs-utils/rc.nfsd
index b73d8cc81..ad087a355 100644
--- a/source/n/nfs-utils/rc.nfsd
+++ b/source/n/nfs-utils/rc.nfsd
@@ -16,13 +16,10 @@ if [ -r /etc/default/nfs ]; then
fi
nfsd_start() {
- # Sanity checks. Exit if there's no /etc/exports, or if there aren't any
- # shares defined in it.
- if [ ! -r /etc/exports ]; then # no config file, exit:
- exit
- elif ! grep -v '^#' /etc/exports | grep '/' 1> /dev/null 2> /dev/null ; then
- exit # no uncommented shares in /etc/exports
- fi
+ # There used to be "sanity checks" here to exit without starting if various
+ # config files didn't exist, or didn't contain certain expected content.
+ # This behavior led to some bugs and has been removed. It's not our business
+ # to check your config files - that's for the binaries that use them.
# If we do not detect nfsd support built into the kernel (or previously
# loaded as a module), we will try to load the nfsd.ko kernel module:
@@ -43,7 +40,7 @@ nfsd_start() {
sh /etc/rc.d/rc.rpc start
else
# Sure, we tested for rpc.statd, but this is the probable cause:
- echo "FATAL: Can't start NFS server without portmap package."
+ echo "FATAL: Can't start NFS server without rpcbind package."
sleep 5
exit 1
fi