diff mbox series

[2/2] systemd-conf: stop forwarding journal to syslog by default

Message ID 20261116092104.3160433-2-ecordonnier@snap.com
State New
Headers show
Series [1/2] sysklogd: enable journal forwarding to syslog.socket | expand

Commit Message

Etienne Cordonnier Nov. 16, 2026, 9:21 a.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

ForwardToSyslog=yes was added in 2014 (67ddca4a55) as a stopgap
because systemd 216 stopped forwarding by default and the oeqa tests
then expected a syslog daemon to receive messages. The tests now fall
back to journalctl, so the override is no longer needed.

On images without a syslog daemon, journald still formats and tries to
forward every message to syslog for nothing, wasting CPU. Images running
a syslog daemon that reads /dev/log must now enable ForwardToSyslog
themselves.

AI-Generated: Uses Claude Code (claude-sonnet-5-5)
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 meta/recipes-core/systemd/systemd-conf/journald.conf | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd-conf/journald.conf b/meta/recipes-core/systemd/systemd-conf/journald.conf
index fd4d969fa7..750fb2f5e8 100644
--- a/meta/recipes-core/systemd/systemd-conf/journald.conf
+++ b/meta/recipes-core/systemd/systemd-conf/journald.conf
@@ -1,3 +1,2 @@ 
 [Journal]
-ForwardToSyslog=yes
 RuntimeMaxUse=64M