Section 17. Filing of Vacancy. — In case of vacancy caused by death, retirement, resignation, suspension or removal in a local police agency, the mayor shall fill such vacancy as provided for in this Act. In case of suspension and when required by the exigencies of the service, the appointment will only be for the duration of the suspension. Whenever a temporary vacancy occurs in the office of the Chief of Police, the Deputy Chief of Police shall automatically assume the office.