i need help with a problem on shutting mongod down gracefully. I'm running mongodb on docker .
i run mongod like with the command :
mongod --config /etc/mongod.conf
and when i close with :
i get the message :
There doesn't seem to be a server running with dbpath: /data/db
the message is true , because my db path is not "/data/db" .
and if i try to shut it down like :
mongod --config /etc/mongod.conf --shutdown
i get the message:
killing process with pid: 9
what is the problem ?