Be it further enacted by the authority aforesaid, that it shall be the duty of the sheriff of said county to attend all meetings of said board, and to serve all processes, orders, writs, or notices issued by said board, for which services said sheriff shall receive such compensation as may be agreed upon by him and the board; provided, however, that if such board and the sheriff cannot agree as to the compensation he is to receive in said duties then the judge of the probate court of the county shall have the right to determine what is proper compensation for his services.