summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongod.service18
1 files changed, 12 insertions, 6 deletions
diff --git a/rpm/mongod.service b/rpm/mongod.service
index 24253f088c8..cd030da6ad8 100644
--- a/rpm/mongod.service
+++ b/rpm/mongod.service
@@ -9,12 +9,18 @@ Group=mongod
Environment="OPTIONS=--quiet -f /etc/mongod.conf"
ExecStart=/usr/bin/mongod $OPTIONS run
PIDFile=/var/run/mongodb/mongod.pid
-LimitFSIZE=infinity # file size
-LimitCPU=infinity # cpu time
-LimitAS=infinity # virtual memory size
-LimitNOFILE=64000 # open files
-LimitNPROC=64000 # processes/threads
-TasksMax=infinity # total threads (user+kernel)
+# file size
+LimitFSIZE=infinity
+# cpu time
+LimitCPU=infinity
+# virtual memory size
+LimitAS=infinity
+# open files
+LimitNOFILE=64000
+# processes/threads
+LimitNPROC=64000
+# total threads (user+kernel)
+TasksMax=infinity
TasksAccounting=false
# Recommended limits for for mongod as specified in
# http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings