Principal ‘who lived for his school’ retires