summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-13 18:53:05 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-13 18:53:05 +0200
commit5e8b767df6e18444d5aff2987b5e5603361ed528 (patch)
treec7e25c3310dc30d2d3a600cf2fd6b4081bd44153
parentswitch-root: not only mkdir the parents but the target dir (diff)
downloadsystemd-5e8b767df6e18444d5aff2987b5e5603361ed528.tar.xz
systemd-5e8b767df6e18444d5aff2987b5e5603361ed528.zip
journald: also increase the SendBuffer of /dev/log to 8M
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021825.html
-rw-r--r--units/systemd-journald-dev-log.socket8
1 files changed, 7 insertions, 1 deletions
diff --git a/units/systemd-journald-dev-log.socket b/units/systemd-journald-dev-log.socket
index c01b310b40..ffd44bb507 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