For maintenance or troubleshooting purposes, you may want to temporarily shut down or restart the MongoDB Agent.
Restart the MongoDB Agent
If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to restart the MongoDB Agent:
sudo service mongodb-mms-automation-agent restartIf you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to restart the MongoDB Agent:
sudo restart mongodb-mms-automation-agentUse these commands if you installed to Linux using a tar file. Issue the following commands from the directory to which you installed the MongoDB Agent:
pkill -f mongodb-mms-automation-agentnohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &Start the MongoDB Agent
If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to start the MongoDB Agent:
sudo service mongodb-mms-automation-agent startIf you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to start the MongoDB Agent:
sudo start mongodb-mms-automation-agentUse this command if you installed to Linux using a tar file. Issue the following command from the directory to which you installed the MongoDB Agent:
nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &Stop the MongoDB Agent
If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to stop the MongoDB Agent:
sudo service mongodb-mms-automation-agent stopIf you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to stop the MongoDB Agent:
sudo stop mongodb-mms-automation-agentIf you installed to a Linux system using a tar file, issue the following command to stop the MongoDB Agent:
pkill -f mongodb-mms-automation-agent