An old proverb says, "You die twice - the first time when you draw your final breath, and the second time when someone says your name for the last time."
My maternal grandfather passed away at a relatively young age. I was only a small child then, so I don't remember him much. But stories of his wisdom, incredible passion for food and music, deep love and generosity toward his family and friends, and kindness to strangers are told and retold decades after he passed. So he's still living his second life, as a legend.
Of course, it doesn't matter to you what happens after you are dead. And it's never a good idea to be beholden to what others think of you. But it can still inspire you to live how you want.
Notes:
1. A corollary to this is you can revive a physically dead person by remembering and mentioning them.