My current problem: I have a production server and just updated mongod, but lost some functionality.
In earlier versions ( v2.0.6
), I was able to run mongod
with the --shutdown
option and it will kill all other instances.
Now with version v2.4.5
- if I run:
mongod --shutdown
Result:
error command line: unknown option shutdown use --help for help
Version Information: mongod --version
db version v2.4.5 Mon Sep 16 14:09:38.994 git version: a2ddc68ba7c9cee17bfe69ed840383ec3506602b
It is important that I have this option or something similar, because I have a server process managing a new instance.
For instance:
var spawn = require('child_process').spawn, result = spawn('mongod', ['--quiet', '--shutdown', '--directoryperdb', '--dbpath', __dirname + '/database']);
Edit:
The Mongodb documentation still has the --shutdown
option.
Link: http://docs.mongodb.org/manual/tutorial/manage-mongodb-processes/
Alternately, you can shut down the mongod instance: using the
Edit:
<B> I felt I should update this question. This problem has been fixed in the mongojs shell version v.9.6. However, there are still some kinks that will be developed as outlined in issue # 97 , but should work for most requirements.
source share