summaryrefslogtreecommitdiff
path: root/debian/etc/sv/bigcouch/run
diff options
context:
space:
mode:
Diffstat (limited to 'debian/etc/sv/bigcouch/run')
-rw-r--r--debian/etc/sv/bigcouch/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/etc/sv/bigcouch/run b/debian/etc/sv/bigcouch/run
index 875c3f02..38a901e1 100644
--- a/debian/etc/sv/bigcouch/run
+++ b/debian/etc/sv/bigcouch/run
@@ -2,3 +2,9 @@
exec 2>&1
export HOME=/home/bigcouch
exec chpst -u bigcouch /opt/bigcouch/bin/bigcouch
+
+# increase the max. no of open files
+# see https://leap.se/code/issues/4935 for details
+ulimit -S -n 4096
+ulimit -H -n 32768
+