Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /lib/systemd/system/mongodb.service
- [Unit]
- Description=An object/document-oriented database
- Documentation=man:mongod(1)
- After=network.target
- [Service]
- User=mongodb
- Group=mongodb
- RuntimeDirectory=mongodb
- RuntimeDirectoryMode=0755
- EnvironmentFile=-/etc/default/mongodb
- Environment=CONF=/etc/mongodb.conf
- Environment=SOCKETPATH=/run/mongodb
- ExecStart=/usr/bin/mongod --unixSocketPrefix=${SOCKETPATH} --config ${CONF} $DAEMON_OPTS
- LimitFSIZE=infinity
- LimitCPU=infinity
- LimitAS=infinity
- LimitNOFILE=64000
- LimitNPROC=64000
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement