From e39d6c0dbefe96a177514bcf74a9edb80ae1b107 Mon Sep 17 00:00:00 2001 From: Greg Newby Date: Thu, 22 Apr 2021 14:20:35 -0700 Subject: [PATCH] Update autocat3.service This allows the system file limit to apply to the service, rather than the per-user or shell limit. It should fix occasional "too many open files" errors. --- autocat3.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autocat3.service b/autocat3.service index b544c2d..5296b2f 100644 --- a/autocat3.service +++ b/autocat3.service @@ -9,6 +9,8 @@ RuntimeDirectory=autocat WorkingDirectory=/var/lib/autocat/autocat3 ExecStartPre=-/usr/bin/mkdir -p /var/run/autocat ExecStart=/usr/local/bin/pipenv run python CherryPyApp.py +LimitNOFILE=infinity + [Install] WantedBy=multi-user.target