If the existence of the nuisance be established upon the trial a judgment shall be entered perpetually enjoining the defendants and any other persons from further maintaining the nuisance, and the defendants from maintaining such nuisance elsewhere within the state.