Skip to content

Instantly share code, notes, and snippets.

@virtualdreams
Last active March 16, 2019 06:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualdreams/0ce2c1518e91123618dd74f3980095a3 to your computer and use it in GitHub Desktop.
Save virtualdreams/0ce2c1518e91123618dd74f3980095a3 to your computer and use it in GitHub Desktop.
MongoDB systemd service file
[Unit]
Description=MongoDB Database Server
After=network.target
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
PIDFile=/var/run/mongodb/mongod.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment