Skip to content

Instantly share code, notes, and snippets.

@morungos
Last active August 29, 2015 13:56
Show Gist options
  • Save morungos/8866319 to your computer and use it in GitHub Desktop.
Save morungos/8866319 to your computer and use it in GitHub Desktop.
Stuart's OSX plist for MongoDB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.mongodb.mongod</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mongodb/bin/mongod</string>
<string>--dbpath</string>
<string>/usr/local/mongodb_data</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/mongodb</string>
<key>HardResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
<key>ResidentSetSize</key>
<integer>1073741824</integer>
</dict>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
<key>ResidentSetSize</key>
<integer>1073741824</integer>
</dict>
<key>StandardErrorPath</key>
<string>/var/log/mongodb/error.log</string>
<key>StandardOutPath</key>
<string>/var/log/mongodb/output.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment