[ -x /usr/sbin/exportfs ] || exit 0
[ -s /etc/exports ] || exit 0
-# Number of servers to be started uo by default
+# Number of servers to be started up by default
RPCNFSDCOUNT=8
# No NFS V3.
RPCMOUNTDOPTS="--no-nfs-version 3"
;;
stop)
# Stop daemons.
- action "Shutting down NFS services: " /usr/sbin/exportfs -au
echo -n "Shutting down NFS mountd: "
killproc rpc.mountd
echo
echo -n "Shutting down NFS quotas: "
killproc rpc.rquotad
echo
+ # Do it the last so that clients can still access the server
+ # when the server is running.
+ action "Shutting down NFS services: " /usr/sbin/exportfs -au
rm -f /var/lock/subsys/nfs
;;
status)
status rpc.rquotad
;;
restart)
- echo -n "Restarting NFS services: "
- echo -n "rpc.mountd "
- killproc rpc.mountd
- daemon rpc.mountd $RPCMOUNTDOPTS
- /usr/sbin/exportfs -r
- touch /var/lock/subsys/nfs
- echo "done."
+ $0 stop
+ $0 start
;;
reload)
/usr/sbin/exportfs -r
esac
exit 0
-