I told my son the same thing, you're spot on. Life can be long when you're miserable and short when you're happy.I always told my son to work hard and be proud of the job you do no matter what. Also look for something better if you're not happy. We spend too much time at work (whether for someone else or yourself) to be unhappy there.
At the end of my working career (past 50) I was lucky enough to find good bosses, however if they hadn't treated me well I just would have bought my own business and did things my way. The end bosses let me run everything my way so I suppose it all ended the same.
I always told my many bosses, if he was one of those on a power trip, how would you like me to do that. I had a thing, you don't get bragging rights for our work if you know nothing about what we do. He'd say, that's my job to tell you what to do and you do your job. I told him, great, but you're not climbing that ladder by stepping on our heads. In short order he got the point, I stayed and they were moved on. Working together gets everyone a feather for their hat.