Skip to content

Commit

Permalink
journald: make sure we retain all stream fds across restarts (#6348)
Browse files Browse the repository at this point in the history
Currently we set 4096 as maximum for number of stream connections that
we accept. However maximum number of file descriptors that systemd is
willing to accept from us is just 1024. This means we can't retain all
stream connections that we accepted. Hence bump the limit of fds in a
unit file so that systemd holds open all stream fds while we are
restarted.

New limit is set to 4224 (4096 + 128).

(cherry picked from commit 3c978ac)

Related: #1359939
  • Loading branch information
msekletar authored and lnykryn committed Sep 12, 2017
1 parent e0a3cd2 commit ad2d544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions units/systemd-journald.service.in
Expand Up @@ -20,6 +20,7 @@ ExecStart=@rootlibexecdir@/systemd-journald
Restart=always
RestartSec=0
StandardOutput=null
FileDescriptorStoreMax=4224
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
WatchdogSec=3min

Expand Down

0 comments on commit ad2d544

Please sign in to comment.