mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-27 23:27:11 +01:00
35 lines
811 B
Desktop File
35 lines
811 B
Desktop File
[Unit]
|
|
Description=MongoDB Database Server
|
|
Documentation=https://docs.mongodb.org/manual
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
User=mongod
|
|
Group=mongod
|
|
Environment="OPTIONS=-f /etc/mongod.conf"
|
|
Environment="MONGODB_CONFIG_OVERRIDE_NOFORK=1"
|
|
EnvironmentFile=-/etc/sysconfig/mongod
|
|
ExecStart=/usr/bin/mongod $OPTIONS
|
|
RuntimeDirectory=mongodb
|
|
# file size
|
|
LimitFSIZE=infinity
|
|
# cpu time
|
|
LimitCPU=infinity
|
|
# virtual memory size
|
|
LimitAS=infinity
|
|
# open files
|
|
LimitNOFILE=64000
|
|
# processes/threads
|
|
LimitNPROC=64000
|
|
# locked memory
|
|
LimitMEMLOCK=infinity
|
|
# total threads (user+kernel)
|
|
TasksMax=infinity
|
|
TasksAccounting=false
|
|
# Recommended limits for mongod as specified in
|
|
# https://docs.mongodb.com/manual/reference/ulimit/#recommended-ulimit-settings
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|