From a21fcdd242a5860de7fe4184561bf3d7b499832c Mon Sep 17 00:00:00 2001 From: Kieran Pilkington Date: Tue, 29 Dec 2009 09:46:22 +1300 Subject: [PATCH] Updated formula: mongodb - Added configuration file, changing data dir to #{var}/mongodb, and adding launchd plist file. --- Formula/mongodb.rb | 64 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/Formula/mongodb.rb b/Formula/mongodb.rb index cdf179bcd73..3364c12c3c2 100644 --- a/Formula/mongodb.rb +++ b/Formula/mongodb.rb @@ -4,6 +4,8 @@ require 'hardware' class Mongodb + + + + Label + org.mongodb.mongod + ProgramArguments + + #{bin}/mongod + run + --config + #{prefix}/mongod.conf + + RunAtLoad + + KeepAlive + + UserName + #{`whoami`} + WorkingDirectory + #{HOMEBREW_PREFIX} + StandardErrorPath + #{var}/log/mongodb/output.log + StandardOutPath + #{var}/log/mongodb/output.log + + +EOS end end