Whenever process is executed, or any act performed by a coroner or elisor, he shall receive a reasonable compensation, to be fixed by the court, to be paid by the plaintiff in case of the summoning of jurors to complete the panel, and by the person or party requiring the service in all other cases in private action. If rendered at the instance of the people, it shall be audited and paid as a county charge.