an officer of the court who is employed to execute writs and processes and make arrests etc.
source: WordNet 3.0
Originally, a person put in charge of something; especially, a chief officer, magistrate, or keeper, as of a county, town, hundred, or castle; one to whom powers of custody or care are intrusted.