diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongodb.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index ac49b3cd3..ee5e7f0c6 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -62,15 +62,19 @@ class Mongodb < Formula Or start it manually: mongod run --config #{prefix}/mongod.conf + + The launchctl plist above expects the config file to be at #{etc}/mongod.conf. + If this is a first install, you can copy one from #{prefix}/mongod.conf: + cp #{prefix}/mongod.conf #{etc}/mongod.conf EOS if ARGV.include? "--nojournal" - s += "" + s += "\n" s += <<-EOS.undent Write Ahead logging (Journaling) has been disabled. EOS else - s += "" + s += "\n" s += <<-EOS.undent MongoDB 1.8+ includes a feature for Write Ahead Logging (Journaling), which has been enabled by default. To disable journaling, use --nojournal. @@ -120,7 +124,7 @@ class Mongodb < Formula <string>#{bin}/mongod</string> <string>run</string> <string>--config</string> - <string>#{prefix}/mongod.conf</string> + <string>#{etc}/mongod.conf</string> </array> <key>RunAtLoad</key> <true/> |
