Officer having charge of hedges and fences around a town common, esp. to keep cattle from breaking through and to impound stray cattle.

The Shirriffs was the name the Hobbits gave to their police, or the nearest equivalent that they possessed. … They were in practice rather haywards than policemen, more concerned with the strayings of beasts than of people.

Definition from Dictionary.com