My father’s moral inculcations were at all times mainly those of the ‘Socratici viri’; justice, temperance (to which he gave a very extended application), veracity, perseverance, readiness to encounter pain and especially labour; regard for the public good; estimation of personas according to their merits, and of things according to their intrinsic usefulness; a life of exertion, in contradiction to one of self-indulgent sloth. These and other moralities he conveyed in brief sentences, uttered as occasion arose, of grave exhortation, or stern reprobation and contempt.
But though direct moral teaching does much, indirect does more; and the effect my father produced on my character, did not depend solely on what he said or did with that direct object, but also, and still more, on what manner of man he was.
John Stuart Mill
James Mill didn’t raise his son John Stuart Mill with a formal religion, however James demanded morals were included in his education. Stoic morals above all I’d say, – temperance, readiness to encounter pain.
But, as with most things parenting, or teaching, the manner of person you live out in front of your students or children matters most.
Mill, John Stuart. Autobiography. United Kingdom, Penguin Publishing Group, 1989. pp55