Section 106A. In any town of not exceeding three thousand inhabitants which accepts this section by vote in town meeting, the selectmen may appoint the school physician to be the town physician. Such appointment shall not bar the school physician from the general practice of his profession.