Created
January 26, 2015 02:54
-
-
Save nofxx/b86ec6ce2f6da383e630 to your computer and use it in GitHub Desktop.
Systemd mongodb service for servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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