summaryrefslogtreecommitdiff
path: root/units
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 /units
parent5caeb7d6854e02321e0e00588e17412b161ef176 (diff)
journald: also increase the SendBuffer of /dev/log to 8M
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021825.html
Diffstat (limited to 'units')
-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