From 54420109ac1fedd244f59058d1d3024e301c1fbc Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 16 Mar 2020 12:32:45 -0400 Subject: [PATCH] update the open file limit in the example systemd service file --- docs/cryptpad.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/cryptpad.service b/docs/cryptpad.service index 54adf12e9..eee8b2af5 100644 --- a/docs/cryptpad.service +++ b/docs/cryptpad.service @@ -19,5 +19,10 @@ Group=cryptpad # modify to match your working directory Environment='PWD="/home/cryptpad/cryptpad/cryptpad"' +# systemd sets the open file limit to 4000 unless you override it +# cryptpad stores its data with the filesystem, so you should increase this to match the value of `ulimit -n` +# or risk EMFILE errors. +LimitNOFILE=1000000 + [Install] WantedBy=multi-user.target