923a60
From ad2d5449dc86ac37460ac9c16e0d5d088befbd0b Mon Sep 17 00:00:00 2001
923a60
From: Michal Sekletar <msekletar@users.noreply.github.com>
923a60
Date: Mon, 17 Jul 2017 10:04:37 +0200
923a60
Subject: [PATCH] journald: make sure we retain all stream fds across restarts
923a60
 (#6348)
923a60
923a60
Currently we set 4096 as maximum for number of stream connections that
923a60
we accept. However maximum number of file descriptors that systemd is
923a60
willing to accept from us is just 1024. This means we can't retain all
923a60
stream connections that we accepted. Hence bump the limit of fds in a
923a60
unit file so that systemd holds open all stream fds while we are
923a60
restarted.
923a60
923a60
New limit is set to 4224 (4096 + 128).
923a60
923a60
(cherry picked from commit 3c978aca69e0e43d4dd453437ec9c498ea788795)
923a60
923a60
Related: #1359939
923a60
---
923a60
 units/systemd-journald.service.in | 1 +
923a60
 1 file changed, 1 insertion(+)
923a60
923a60
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
923a60
index c85c349327..0d1ea61fe8 100644
923a60
--- a/units/systemd-journald.service.in
923a60
+++ b/units/systemd-journald.service.in
923a60
@@ -20,6 +20,7 @@ ExecStart=@rootlibexecdir@/systemd-journald
923a60
 Restart=always
923a60
 RestartSec=0
923a60
 StandardOutput=null
923a60
+FileDescriptorStoreMax=4224
923a60
 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
923a60
 WatchdogSec=3min
923a60