Re-enable journal forwarding to syslog
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 28 Nov 2014 13:43:25 +0000 (14:43 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Sep 2018 22:47:19 +0000 (23:47 +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 ee8e8b7faf89aa80b208cfafae513bc7e9d1c0eb..889d3c9ab5a7cfede574c1be296d90a29e807fd3 100644 (file)
         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
+        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>,
index 4f1550ec5b728283937f9c7a53a649331ecb2df7..f48059da20e1d1bce85c49bf568fdbaa227ebde2 100644 (file)
@@ -1692,6 +1692,7 @@ int server_init(Server *s) {
         s->rate_limit_interval = DEFAULT_RATE_LIMIT_INTERVAL;
         s->rate_limit_burst = DEFAULT_RATE_LIMIT_BURST;
 
+        s->forward_to_syslog = true;
         s->forward_to_wall = true;
 
         s->max_file_usec = DEFAULT_MAX_FILE_USEC;
index 94d5c678aa0fe3805f79fb768a781f83ceb6358e..a397799dd242603fdb15c2654352e744d5ef05db 100644 (file)
@@ -29,7 +29,7 @@
 #RuntimeMaxFiles=100
 #MaxRetentionSec=
 #MaxFileSec=1month
-#ForwardToSyslog=no
+#ForwardToSyslog=yes
 #ForwardToKMsg=no
 #ForwardToConsole=no
 #ForwardToWall=yes