If the judgment is for imprisonment, or a fine and imprisonment until it be paid, the defendant must forthwith be committed to the custody of the proper officer and by him or her detained until the judgment is complied with. Where, however, the court has suspended sentence, or where, after imposing sentence, the court has suspended the execution thereof and placed the defendant on probation, as provided in Section 1203, the defendant, if over the age of 16 years, shall be placed under the care and supervision of the probation officer of the court committing him or her, until the expiration of the period of probation and the compliance with the terms and conditions of the sentence, or of the suspension thereof. Where, however, the probation has been terminated as provided in Section 1203, and the suspension of the sentence, or of the execution revoked, and the judgment pronounced, the defendant shall be committed to the custody of the proper officer and be detained until the judgment be complied with.
Ca. Pen. Code § 1215