Reports whether mongod is active, its process ID, and recent log lines. Logs also live in /var/log/mongodb/mongod.log. Use --no-pager in scripts; the exit code is nonzero when the service is down.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.