After an indictment or information has been presented against any person for carrying on a trade, business or occupation injurious to the health of those in the neighborhood, the court shall have power, on the application of anyone interested, and after hearing proof both for and against the accused, to restrain the defendant, in such penalty as may be deemed proper, from carrying on such trade, business or occupation, or may make such order respecting the manner and place of carrying on the same as may be deemed advisable; and if upon trial, the defendant be convicted, the restraint shall be made perpetual, and the party shall be required to enter into bond, with security, not to continue such trade, business or occupation to the detriment of the health of such neighborhood, or of any other neighborhood within the county.
Tex. Code Crim. Proc. § 9.01