Fixed mongodb caveats to explain copying the plist file to ~/Library/LaunchAgents
* launchctl doesn't start the daemon on login unless the plist lives in ~/Library/LaunchAgents Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5d8558d959
commit
c74e28ed83
1 changed files with 8 additions and 2 deletions
|
@ -34,8 +34,14 @@ class Mongodb <Formula
|
|||
end
|
||||
|
||||
def caveats; <<-EOS
|
||||
You can enable mongodb to automatically load on login with:
|
||||
launchctl load -w #{prefix}/org.mongodb.mongod.plist
|
||||
If this is your first install, automatically load on login with:
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
|
||||
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
|
||||
If this is an upgrade and you already have the org.mongodb.mongod.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
cp #{prefix}/org.mongodb.mongod.plist ~/Library/LaunchAgents
|
||||
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
|
||||
|
||||
Or start it manually:
|
||||
mongod run --config #{prefix}/mongod.conf
|
||||
|
|
Loading…
Reference in a new issue