log_daemon_msg "Starting $DESC"
log_progress_msg "nfsd"
+
+ # See if portmap or rpcbind are running
+ lsof -i :111 >/dev/null
+ RET=$?
+ if [ $RET != 0 ]; then
+ echo
+ log_warning_msg "Not starting: portmap daemon is not running"
+ exit 0
+ fi
+
start-stop-daemon --start --oknodo --quiet \
--nicelevel $RPCNFSDPRIORITY \
--exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT