diff options
author | Rafael Fontenelle | 2022-07-20 09:30:11 -0300 |
---|---|---|
committer | Rafael Fontenelle | 2022-07-21 15:29:30 -0300 |
commit | d7a42c1f0174ec3b00892fe6dbe8accc41fffe97 (patch) | |
tree | 7fd904749213024d26745671851f20e4fb8adbf5 /mongodb.service | |
download | aur-d7a42c1f0174ec3b00892fe6dbe8accc41fffe97.tar.gz |
Initial commit
Move from mongodb-bin, due to new major release
Diffstat (limited to 'mongodb.service')
-rw-r--r-- | mongodb.service | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mongodb.service b/mongodb.service new file mode 100644 index 000000000000..1f0fbdaed76c --- /dev/null +++ b/mongodb.service @@ -0,0 +1,37 @@ +[Unit] +Description=MongoDB Database Server +Documentation=https://docs.mongodb.org/manual +After=network-online.target +Wants=network-online.target + +[Service] +User=mongodb +Group=mongodb +ExecStart=/usr/bin/mongod --config /etc/mongodb.conf +PIDFile=/run/mongodb/mongod.pid +# 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 +# Make systemd wait as long as it takes for MongoDB to start +# If MongoDB needs a long time to start, prevent systemd from +# restarting it every 90 seconds +# See: https://jira.mongodb.org/browse/SERVER-38086 +TimeoutStartSec=infinity + +# Recommended limits for mongod as specified in +# https://docs.mongodb.com/manual/reference/ulimit/#recommended-ulimit-settings + +[Install] +WantedBy=multi-user.target |