X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fnodist%2Fnfs-server;h=4517937f586780be80fc95900fcd61f172cf663b;hb=955d48dbcf0c75f263f2573c998acc65f95ededa;hp=77daaebaa6460f2546fa0162cf307e850bff8494;hpb=912b1f1584d17aea680d561296bff407ea2bb175;p=nfs-utils.git diff --git a/etc/nodist/nfs-server b/etc/nodist/nfs-server index 77daaeb..4517937 100755 --- a/etc/nodist/nfs-server +++ b/etc/nodist/nfs-server @@ -3,7 +3,7 @@ # independent fashion. # # description: starts and stops nfs server services -# chkconfig: 2345 99 01 +# chkconfig: 2345 60 20 # # Copyright (c) 2000-2001 Mission Critical Linux, Inc. # @@ -53,7 +53,9 @@ start) echo -n "Starting $NFSD: " startdaemon $PREFIX$NFSD $RPCNFSDCOUNT - if /usr/sbin/rpcinfo -u localhost nfs 3 &>/dev/null + # Disable NFSv3 on mountd if we don't have NFSv3 + rpcinfo -u localhost nfs 3 &>/dev/null + if [ "$?" != "0" ] then RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" fi