No person shall be eligible to take the civil service examination or to appointment as a member of either the police or fire departments in cities coming within this part who is not a citizen of the United States or who has ever been convicted of a felony, or who does not possess a good moral character.