[redis] Add limits files for services

Haïkel Guémar hguemar at fedoraproject.org
Fri Feb 27 18:19:51 UTC 2015


commit 309201a7776468073f4eeb52bbc1fd1b41824327
Author: Haïkel Guémar <hguemar at fedoraproject.org>
Date:   Fri Feb 27 19:19:44 2015 +0100

    Add limits files for services

 redis-limit-init    | 6 ++++++
 redis-limit-systemd | 7 +++++++
 2 files changed, 13 insertions(+)
---
diff --git a/redis-limit-init b/redis-limit-init
new file mode 100644
index 0000000..2986bfd
--- /dev/null
+++ b/redis-limit-init
@@ -0,0 +1,6 @@
+# If you need to change max open file limit
+# for example, when you change maxclient in configuration
+# you can change the value below
+# see "man limits.conf" for information
+redis soft nofile 10240
+redis hard nofile 10240
diff --git a/redis-limit-systemd b/redis-limit-systemd
new file mode 100644
index 0000000..8003c2f
--- /dev/null
+++ b/redis-limit-systemd
@@ -0,0 +1,7 @@
+# If you need to change max open file limit
+# for example, when you change maxclient in configuration
+# you can change the LimitNOFILE value below
+# see "man systemd.exec" for information
+
+[Service]
+LimitNOFILE=10240


More information about the scm-commits mailing list