Skip to content

Instantly share code, notes, and snippets.

@Randommood
Created October 27, 2011 20:33
Show Gist options
  • Save Randommood/1320782 to your computer and use it in GitHub Desktop.
Save Randommood/1320782 to your computer and use it in GitHub Desktop.
tm99-s00026 sm_mongodb # cat /etc/conf.d/mongodb/mongodb.conf
#!/bin/sh
#
# /etc/conf.d/mongodb
#
# Mongodb essentials
MONGODB_EXEC="/mongod"
MONGODB_DATA="/db/mongodb/active/data"
MONGODB_LOG="/var/log/mongodb/mongodb.log"
MONGODB_PID_FILE="/var/run/mongodb/mongodb.pid"
MONGODB_USER="mongodb"
MONGODB_IP="0.0.0.0"
MONGODB_PORT="27017"
# Set extra options here, such as disabling the admin web server
MONGODB_OPTIONS="--dbpath /db/mongodb --pidfilepath /var/run/mongodb/mongodb.pid --bind_ip 0.0.0.0 --logpath /var/log/mongodb/mongodb.log/mongodb.log --logappend --fork"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment