The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well.
Your ambition should be to get as much life out of living as you possibly can – as much enjoyment, as much interest, as much experience, as much understanding. And not to simply be what is generally called a “success”.