Commit 6cc87b22 authored by Michael Biebl's avatar Michael Biebl

journald: Increase the SendBuffer of /dev/log to 8M

Patch cherry-picked from upstream.
parent 0df2572d
......@@ -9,6 +9,7 @@ systemd (215-14) UNRELEASED; urgency=medium
display-manager.service, following the recent change in sysv-generator.
This avoids creating references to a no longer existing
x-display-manager.target unit.
* Cherry-pick upstream fix to increase the SendBuffer of /dev/log to 8M.
[ Martin Pitt ]
* scope: Make attachment of initial PIDs more robust. Fixes crash with
......
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 13 Aug 2014 18:53:05 +0200
Subject: journald: also increase the SendBuffer of /dev/log to 8M
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021825.html
(cherry picked from commit 5e8b767df6e18444d5aff2987b5e5603361ed528)
---
units/systemd-journald-dev-log.socket | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/units/systemd-journald-dev-log.socket b/units/systemd-journald-dev-log.socket
index c01b310..ffd44bb 100644
--- a/units/systemd-journald-dev-log.socket
+++ b/units/systemd-journald-dev-log.socket
@@ -17,10 +17,16 @@ Before=sockets.target
IgnoreOnIsolate=yes
[Socket]
+Service=systemd-journald.service
ListenDatagram=/run/systemd/journal/dev-log
Symlinks=/dev/log
SocketMode=0666
PassCredentials=yes
PassSecurity=yes
+
+# Increase both the send and receive buffer, so that things don't
+# block early. Note that journald internally uses the this socket both
+# for receiving syslog messages, and for forwarding them to any other
+# syslog, hence we bump both values.
ReceiveBuffer=8M
-Service=systemd-journald.service
+SendBuffer=8M
......@@ -141,6 +141,7 @@ core-do-not-add-dependencies-to-self.patch
units-tmpfiles-setup-dev-allow-unsafe-file-creation-.patch
core-don-t-migrate-PIDs-for-units-that-may-contain-s.patch
scope-make-attachment-of-initial-PIDs-a-bit-more-rob.patch
journald-also-increase-the-SendBuffer-of-dev-log-to-.patch
## Debian specific patches:
Add-back-support-for-Debian-specific-config-files.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment