Section 142
Duties of superintendents of prisons and others to receive prisoners
It shall be the duty, in so far as regulations made under section 136 or Imprisonment and Detention Rules so provide, of the superintendent or other person in charge of a prison (not being a service prison) to receive any person duly sent to that prison in pursuance of such regulations or rules and to confine him until the execution of the sentence is completed or the prisoner is discharged or delivered over in due course of law.
(2)
Where a person is in service custody in pursuance of a service sentence of imprisonment or detention, then on receipt of a written order in that behalf purporting to be signed by that person’s commanding officer, it shall be the duty of any such superintendent or other person as aforesaid, or the police officer in charge of a police station or of any person in charge of any other place in which prisoners may be lawfully confined to keep that person in custody for a period not exceeding seven days unless the said person is earlier discharged or delivered over in due course of law.
Trial of Persons Ceasing to be Subject to Service Law and Time Limits for Trial
Trial and punishment of offences under service law notwithstanding offender ceasing to be subject to service law