When an order of the board of health of a city or general health district made pursuant to section 3709.20 or 3709.21 of the Revised Code is not complied with in whole or in part, the board may petition the court of common pleas for injunctive or other appropriate relief requiring all persons to whom such order of the board is directed to comply with such order. The court of the county in which such offense is alleged to be occurring may grant such injunctive or other appropriate relief as the equities of the case require.