Every local agency in which there is a police department or a fire department may establish a relief and pension fund for either department or for both departments. If a fund is established for both departments, there shall be two separate funds, one for each department. The fund established for the police department shall be known as the police relief and pension fund. The fund established for the fire department shall be known as the firemen’s relief and pension fund.