Generally the county Sheriff is elected, but the city police chief is usually appointed by civilian government.