Starting from the 5.0.15 mongo upgrade changes the systemd service file and break mongo

As specified here MongoDB 5.0.15 is released - #4 by Andrea_Pernici

Looks like from the latest versione Mongo started to change the Service File without any warning. Breaking the restart.

Any help on how to avoid it?

I have the same thing in my server and I couldn’t figure what is happen, the service is break with no reason. Happened in 5.0.x and 6.0.x

https://www.mongodb.com/community/forums/t/mongodb-6-0-crushes-always-centos/217740

We hopefully someone help us.