Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created January 26, 2015 02:54
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 nofxx/b86ec6ce2f6da383e630 to your computer and use it in GitHub Desktop.
Save nofxx/b86ec6ce2f6da383e630 to your computer and use it in GitHub Desktop.
Systemd mongodb service for servers
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitNPROC=64000
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf
Restart=on-abort
#Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment