Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.