From af7d8565a6b56bd5ff856529003edeb1a630557a Mon Sep 17 00:00:00 2001 From: Simon Szustkowski Date: Tue, 12 Jan 2016 15:14:44 +0100 Subject: [PATCH] Fixed the 'too many open files' error when starting gogs with systemd --- scripts/systemd/gogs.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service index 95567eaa9..53b79979e 100644 --- a/scripts/systemd/gogs.service +++ b/scripts/systemd/gogs.service @@ -8,6 +8,8 @@ After=network.target #After=redis.service [Service] +LimitMEMLOCK=infinity +LimitNOFILE=65535 Type=simple User=git Group=git