Unfortunately there's no --status flag.
If you start mongod with the --rest option, you can use the presence
(or not) of the HTTP REST interface to determine whether a mongod is
up and accepting connections or not. The HTTP interface runs on a port
1000 ports higher than the usual mongod port -- so, by default, it
listens on 28017. Like the main mongod port, mongod does not begin
listening on this port if it is still allocating journal files. You
can use something like curl or wget from your startup script to test
whether the interface is litening yet or not.
- Dan
On Apr 25, 10:03 am, Stephan Fortelny <
stephanforte...@gmail.com>
wrote: