How do I terminate a mongod process with python using pymongo? Basically, the equivalent of

use admin
db.shutdownServer()

which is used in the mongo shell.

Thanks
tplinklogin
https://pincodes.gen.in/