Skip to content

Note that mongod --shutdown not available in latest version #2225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Note that mongod --shutdown not available in latest version #2225

wants to merge 1 commit into from

Conversation

jcrben
Copy link

@jcrben jcrben commented Mar 16, 2015

Per http://stackoverflow.com/questions/18835603/mongodb-shutdown-option-unavailable this option has been unavailable since at least v2.4.5.

Maybe we're missing something but I get the same message. If it is truly removed, it seems reasonable to remove the text entirely and I can update the pull request accordingly.

@mpaik
Copy link
Contributor

mpaik commented Mar 16, 2015

--shutdown works fine in mongod 3.0.0. Cannot reproduce.

@mpaik mpaik closed this Mar 16, 2015
@jcrben
Copy link
Author

jcrben commented Mar 16, 2015

Any idea why so many people are getting "error command line: unknown option shutdown
use --help for help" when they try running this?

There's a few hundred views and 2 votes for an answer on Stackoverflow which says: "Since the "--shutdown" option is not available in newer versions of mongo, you now have to kill the process manually"

@schmalliso
Copy link
Contributor

@jcrben What OS are you using? I'm able to reproduce your issues on OS X, and --shutdown doesn't appear in my --help output, while @mpaik is on a Linux machine, and does have it.

@mpaik
Copy link
Contributor

mpaik commented Mar 18, 2015

This definitely works on Linux, and the mongod documentation page on all published manual versions from 2.2 through 3.0 clearly indicate that --shutdown is only available on Linux. The page the pull request is against also says "From the Linux command line" on all published manual versions from 2.4 through 3.0, though an ambiguity exists in 2.2. It is possible that an older version of the manual had a bug, but the documentation is currently correct as written, as far as I can tell.

@jcrben
Copy link
Author

jcrben commented Mar 20, 2015

Yeah, I'm using OS X. I guess I glossed over that Linux bit after I saw the Stack Overflow page. The API documentation is explicit while the tutorial page is clear but not quite definitive. My bad. I'll clarify this on the Stack Overflow thread in case anyone is confused.

mongo-cr-bot pushed a commit that referenced this pull request Dec 2, 2022
…) (#2225)

* Add API options to Mongo constructor

* copy review feedback

* copy review feedback 2

* tech review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants