Commit 5ff84d86 authored by Michael Biebl's avatar Michael Biebl
Browse files

Make the journald to syslog forwarding more robust

by increasing the maximum datagram queue length from 10 to 512.

Closes: #762700
parent 6cc87b22
......@@ -18,6 +18,10 @@ systemd (215-14) UNRELEASED; urgency=medium
* boot-and-services, display-managers autopkgtests: Add missing python3 test
dependency.
[ Christian Seiler ]
* Make the journald to syslog forwarding more robust by increasing the
maximum datagram queue length from 10 to 512. (Closes: #762700)
-- Michael Biebl <biebl@debian.org> Sat, 28 Mar 2015 09:27:07 +0100
systemd (215-13) unstable; urgency=medium
......
[Unit]
Description=Increase datagram queue length
DefaultDependencies=no
Before=syslog.socket
ConditionPathIsReadWrite=/proc/sys/net/unix/max_dgram_qlen
[Service]
Type=oneshot
ExecStart=/sbin/sysctl -w net.unix.max_dgram_qlen=512
StandardOutput=null
RemainAfterExit=yes
......@@ -196,3 +196,4 @@ cgroup-don-t-trim-cgroup-trees-created-by-someone-el.patch
core-don-t-fail-to-run-services-in-user-instances-if.patch
PrivateTmp-shouldn-t-require-tmpfs.patch
sysv-generator-add-support-for-etc-insserv-overrides.patch
syslog-Increase-max_dgram_qlen-by-pulling-in-systemd.patch
From: Michael Biebl <biebl@debian.org>
Date: Sun, 29 Mar 2015 20:55:32 +0200
Subject: syslog: Increase max_dgram_qlen by pulling in
systemd-setup-dgram-qlen.service
Closes: #762700
---
units/syslog.socket | 3 +++
1 file changed, 3 insertions(+)
diff --git a/units/syslog.socket b/units/syslog.socket
index e6e9cf8..457c4e8 100644
--- a/units/syslog.socket
+++ b/units/syslog.socket
@@ -15,6 +15,9 @@ Before=sockets.target shutdown.target
# Don't allow logging until the very end
Conflicts=shutdown.target
+# Increase max_dgram_qlen to a more reasonable value
+Wants=systemd-setup-dgram-qlen.service
+
[Socket]
ListenDatagram=/run/systemd/journal/syslog
SocketMode=0666
......@@ -183,7 +183,11 @@ override_dh_install:
debian/systemd/lib/lsb/init-functions.d/40-systemd
install --mode=644 debian/tmpfiles.d/debian.conf \
debian/systemd/usr/lib/tmpfiles.d/
install --mode=644 debian/debian-fixup.service debian/ifup@.service debian/extra/getty-static.service debian/extra/hwclock-save.service \
install --mode=644 debian/debian-fixup.service \
debian/ifup@.service \
debian/extra/getty-static.service \
debian/extra/hwclock-save.service \
debian/extra/systemd-setup-dgram-qlen.service \
debian/systemd/lib/systemd/system/
install -D --mode=644 debian/extra/network-pre.conf \
debian/systemd/lib/systemd/system/networking.service.d/network-pre.conf
......
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