Advertisement
kopyl

Untitled

Mar 22nd, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # /lib/systemd/system/mongodb.service
  2. [Unit]
  3. Description=An object/document-oriented database
  4. Documentation=man:mongod(1)
  5. After=network.target
  6.  
  7. [Service]
  8. User=mongodb
  9. Group=mongodb
  10. RuntimeDirectory=mongodb
  11. RuntimeDirectoryMode=0755
  12. EnvironmentFile=-/etc/default/mongodb
  13. Environment=CONF=/etc/mongodb.conf
  14. Environment=SOCKETPATH=/run/mongodb
  15. ExecStart=/usr/bin/mongod --unixSocketPrefix=${SOCKETPATH} --config ${CONF} $DAEMON_OPTS
  16. LimitFSIZE=infinity
  17. LimitCPU=infinity
  18. LimitAS=infinity
  19. LimitNOFILE=64000
  20. LimitNPROC=64000
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement