Reputation: 761
./mongos --configdb mongodb0.test.net:27030,mongodb1.test.net:27030,mongodb2.test.net:27030 --port 27040 --logpath routing.log --fork
I run this script to setup my routing server.
For mongod, I can use --shutdown or enter to mongo and write db.shutdownServer() but it is not the case for mongos.
are there any ways to shutdown? Thank you.
Upvotes: 0
Views: 555
Reputation: 151220
The routers (mongos) do not actually maintain any persisted data themselves. Instead all data is managed by separate mongod
instances for the config servers or otherwise in members of the shards they are accessing.
As such can simply be shutdown with signal handling from the kill
command.
For more information on tracking the pid
for created processes see the --pidfilepath
option in the documentation.
Upvotes: 1