Skip to content

Instantly share code, notes, and snippets.

@codeb2cc
Created July 1, 2013 10:04
Show Gist options
  • Save codeb2cc/5899707 to your computer and use it in GitHub Desktop.
Save codeb2cc/5899707 to your computer and use it in GitHub Desktop.
MongoDB systemctl unit file
[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target
[Service]
Type=forking
User=mongod
PIDFile=/var/run/mongod/mongod.pid
EnvironmentFile=/etc/sysconfig/mongod
ExecStart=/usr/bin/mongod -f /etc/mongod.conf run
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment