How do you stop a MongoD service that is managed by Ops Manager?

Hi @Justus_Niemeyer

The first option is to use the Ops Manager UI or API to set the instance to shutdown.

To do that without Ops Manager being involved first the MongoDB Agent would have to be stopped then kill mongod. The MongoDB Agent is responsible for managing mongod once it is added to automation, if mongod were killed first the agent would restart mongod.

First systemctl stop mongodb-mms-automation-agent then pkill -x mongod

2 Likes