Skip to content

Instantly share code, notes, and snippets.

@chappy84
Created December 28, 2012 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chappy84/4396594 to your computer and use it in GitHub Desktop.
Save chappy84/4396594 to your computer and use it in GitHub Desktop.
Default install of MongoDB 2.2.2 installed from source running in systemd on Fedora 15
OPTIONS="--quiet -f /etc/mongod.conf"
[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target
[Service]
Type=forking
User=mongod
Group=mongod
PIDFile=/var/run/mongodb/mongod.pid
EnvironmentFile=/etc/sysconfig/mongod
ExecStart=/usr/local/bin/mongod $OPTIONS run
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment