Every age and degree of understanding should have its proper measure of discipline. With regard to boys and adolescents, therefore, or those who cannot understand the seriousness of the penalty of excommunication, whenever such as these are delinquent let them be subjected to severe fasts or brought to terms by harsh beatings, that they may be cured.
Rule of St. Benedict: Chapter 30: How Boys Are to Be Corrected
Listen carefully, my child, to your master's precepts, and incline the ear of your heart. Receive willingly and carry out effectively your loving father's advice, that by the labor of obedience you may return to Him from whom you had departed by the sloth of disobedience.Benedict Of Nursia