Section 30A. Notwithstanding any other provision of this chapter or other general or special law, the service of all persons employed by the commonwealth is hereby restricted to five tours of duty in any one work week, and to such hours in any one work week, not less than thirty-seven and one half hours, except in the case of part-time employment, nor more than forty hours, and with like hours for like tour of duty classes, as determined by the personnel administrator, in accordance with section forty-five of chapter thirty, and the tour of duty is hereby restricted to eight hours, and such tour of duty shall be arranged to fall within a period not exceeding ten consecutive hours; provided, that this section shall not apply to the state police uniformed force and detectives, conservation officers, coastal wardens, employees engaged in forest fire observation, investigators and examiners and other employees of the registry of motor vehicles having police powers under section twenty-nine of chapter ninety, labor relations examiners, teachers, armorers, elected officers, appointees of the governor, heads of departments and divisions and their deputies and assistants, confidential secretaries, scrub women, cleaners or incumbents of the positions of superintendents, assistant superintendents, wardens, deputy wardens, stewards, physicians, dentists, head farmers, business managers, chief power plant engineers at mental health, mental retardation, public health, public welfare and correction institutions, soldiers' homes in Massachusetts and agencies under the jurisdiction of the department of youth services; the manager of the boarding hall at the University of Massachusetts; the adjutant or assistant adjutants, directors of engineering services and directors of business services of the soldiers' homes in Massachusetts; the construction and maintenance supervisor at the reformatory for women; the state farm master at the state farm; members of the Massachusetts military reservation fire department; members of the 104th fighter wing fire department; members of the Devens fire department established pursuant to chapter 498 of the acts of 1993; and such other employees as may be exempted therefrom or any part thereof by a rule or rules of the personnel administrator. Said administrator is empowered to make rules and regulations, subject to the approval of the commissioner of administration, to carry out the provisions of this section.