Re-enable journal forwarding to syslog
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 28 Nov 2014 13:43:25 +0000 (14:43 +0100)
committerLuca Boccassi <bluca@debian.org>
Sun, 25 Aug 2024 17:35:39 +0000 (18:35 +0100)
Revert upstream commit 46b131574fdd7d77 for now, until Debian's sysloggers
can/do all read from the journal directly. See

  http://lists.freedesktop.org/archives/systemd-devel/2014-November/025550.html

for details. Once we grow a journal.conf.d/ directory, sysloggers can be moved
to pulling from the journal one by one and disable forwarding again in such a
conf.d snippet.

Gbp-Pq: Topic debian
Gbp-Pq: Name Re-enable-journal-forwarding-to-syslog.patch

man/journald.conf.xml
src/journal/journald-server.c
src/journal/journald.conf

index 2db6a0f83e3798221806e7021f25a86dedd467eb..160544a0255710b9a689d13e253b311b1a75e3c0 100644 (file)
         traditional syslog daemon, to the kernel log buffer (kmsg), to the system console, or sent as wall
         messages to all logged-in users.  These options take boolean arguments. If forwarding to syslog is
         enabled but nothing reads messages from the socket, forwarding to syslog has no effect. By default,
-        only forwarding to wall is enabled. These settings may be overridden at boot time with the kernel
+        only forwarding to syslog and wall is enabled. These settings may be overridden at boot time with the kernel
         command line options <literal>systemd.journald.forward_to_syslog</literal>,
         <literal>systemd.journald.forward_to_kmsg</literal>,
         <literal>systemd.journald.forward_to_console</literal>, and
index 31358cdc20b9554598e4551d1a12544a26599ece..863575c5962314308810dd29307dc94c9ae8083d 100644 (file)
@@ -2289,6 +2289,7 @@ int server_init(Server *s, const char *namespace) {
                 .ratelimit_interval = DEFAULT_RATE_LIMIT_INTERVAL,
                 .ratelimit_burst = DEFAULT_RATE_LIMIT_BURST,
 
+                .forward_to_syslog = true,
                 .forward_to_wall = true,
 
                 .max_file_usec = DEFAULT_MAX_FILE_USEC,
index 30474cb5265e746dddd10493aa46d5b4d13d20e2..8ae36b4320aaa7bbdd084d33da16a2f66143f98a 100644 (file)
@@ -32,7 +32,7 @@
 #RuntimeMaxFiles=100
 #MaxRetentionSec=0
 #MaxFileSec=1month
-#ForwardToSyslog=no
+#ForwardToSyslog=yes
 #ForwardToKMsg=no
 #ForwardToConsole=no
 #ForwardToWall=yes