-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
In the RPM spec the mongod service is (re)started upon an update, no matter if mongod service is running or not:
https://github.com/mongodb/mongo/blob/49d34008db892e6a89498ecdd68fcd26e1d7ffab/rpm/mongodb-org.spec#L284
With help of systemctl is-active this can be changed to restart only a running mongod service:
/usr/bin/systemctl is-active --quiet mongod && /usr/bin/systemctl restart mongod