In each case when judgment is recovered pursuant to this chapter, it also shall include the costs of the action, and it shall direct that if the same is not paid, the defendant shall be committed to the county jail of the proper county there to be imprisoned for a specified time, not exceeding six months. Such period shall be fixed by the court in view of all the circumstances of the case, or until otherwise discharged pursuant to law. In such case a commitment shall issue as in an ordinary criminal action. This section shall not prevent the enforcement of any such judgment by execution at any time within one year from its rendition.
32-14-07. Forfeitures - How recovered by city, corporation, or limited liability company. All forfeitures imposed by any bylaw, ordinance, or regulation of any city or of any corporation or limited liability company organized under the laws of this state, when special provision is not otherwise made by law for their recovery nor punishment provided for the act or omission for which they are imposed, may be sued for and recovered pursuant to this chapter. It shall be sufficient to allege in the complaint that the defendant is indebted to the plaintiff in the amount of the forfeiture claimed, specifying the bylaw, ordinance, or regulation which imposes it. And when such bylaw, ordinance, or regulation imposes a penalty or forfeiture for several offenses or delinquencies, it shall specify the particular offense or delinquency for which the action brought, with a demand for a judgment for the amount of such forfeiture. All money collected on such judgment shall be paid to the city auditor or the treasurer of the corporation or limited liability company.