From de45d726034f33afdb0a185e62fc61bf10a0acd2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Jan 2015 03:17:50 +0100 Subject: journal: bump RLIMIT_NOFILE when journal files to 16K (if possible) When there are a lot of split out journal files, we might run out of fds quicker then we want. Hence: bump RLIMIT_NOFILE to 16K if possible. Do these even for journalctl. On Fedora the soft RLIMIT_NOFILE is at 1K, the hard at 4K by default for normal user processes, this code hence bumps this up for users to 4K. https://bugzilla.redhat.com/show_bug.cgi?id=1179980 --- units/systemd-journal-gatewayd.service.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'units/systemd-journal-gatewayd.service.in') diff --git a/units/systemd-journal-gatewayd.service.in b/units/systemd-journal-gatewayd.service.in index 5bd8e4b341..987220e554 100644 --- a/units/systemd-journal-gatewayd.service.in +++ b/units/systemd-journal-gatewayd.service.in @@ -20,5 +20,9 @@ PrivateNetwork=yes ProtectSystem=full ProtectHome=yes +# If there are many split upjournal files we need a lot of fds to +# access them all and combine +LimitNOFILE=16384 + [Install] Also=systemd-journal-gatewayd.socket -- cgit v1.2.3-54-g00ecf