The Death of Ivan Ilyich

What does Ivan Ilyich think is the right way to live his life before his illness strikes?

What does he discover a few hours before his death to be the truth about how he should have lived his life? How do you think you should live your life?