Five local police departments have committed to 2 years of employment for candidates who successfully complete training.