Skip to content
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

Brew Services Not Updating With Fresh mongod.conf #186

Closed
jackkeck opened this issue Apr 20, 2019 · 1 comment
Closed

Brew Services Not Updating With Fresh mongod.conf #186

jackkeck opened this issue Apr 20, 2019 · 1 comment
Labels

Comments

@jackkeck
Copy link

Problem
After updating the mongod.conf file to include new parameters, brew services [stop/start/restart] mongodb-community@4.0" does not pick up the new version of mongod.conf`.

While playing with @MongoDB locally, I used @MacHomebrew’s services command to manage the mongod process. Don’t do this if you’re playing with configuration a lot. Due to its use use launchctl’s plists, it is not pulling in the latest version of your mongod.conf.

— Jack Keck (@jackkeck) April 20, 2019

I found an interesting answer on Stack Overflow that references formula caveats from 2015 stating:

==> Caveats
To reload mongodb after an upgrade:
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
    mongod --config /usr/local/etc/mongod.conf

TODO
Update brew services to refresh MongoDB configuration from mongod.conf upon all starts and restarts.

@MikeMcQuaid
Copy link
Member

Sorry, there's not enough information here to figure out what your problem is.

To help us debug this issue can you explain:

  • What you were trying to do (and why)
  • What happened
  • What you expected to happen
  • Step-by-step reproduction instructions (with as minimal input data as possible)

@lock lock bot added the outdated label May 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants