From 40b71e89bae4e51768db4dc50ec64c1e9c96eec4 Mon Sep 17 00:00:00 2001 From: Sebastian Thorarensen Date: Fri, 14 Mar 2014 00:38:15 +0100 Subject: journald: add support for wall forwarding This will let journald forward logs as messages sent to all logged in users (like wall). Two options are added: * ForwardToWall (default yes) * MaxLevelWall (default emerg) 'ForwardToWall' is overridable by kernel command line option 'systemd.journald.forward_to_wall'. This is used to emulate the traditional syslogd behaviour of sending emergency messages to all logged in users. --- man/journald.conf.xml | 40 ++++++++++++++++++++++++---------------- man/kernel-command-line.xml | 1 + man/systemd-journald.service.xml | 5 +++-- 3 files changed, 28 insertions(+), 18 deletions(-) (limited to 'man') diff --git a/man/journald.conf.xml b/man/journald.conf.xml index a814ec1ec3..239a2ec95c 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -381,24 +381,28 @@ ForwardToSyslog= ForwardToKMsg= ForwardToConsole= + ForwardToWall= Control whether log messages received by the journal daemon shall be forwarded to a traditional syslog daemon, to the - kernel log buffer (kmsg), or to the - system console. These options take - boolean arguments. If forwarding to - syslog is enabled but no syslog daemon - is running, the respective option has - no effect. By default, only forwarding - to syslog is enabled. These settings - may be overridden at boot time with - the kernel command line options + 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 no + syslog daemon is running, the + respective option has no effect. By + default, only forwarding to syslog and + wall is enabled. These settings may be + overridden at boot time with the + kernel command line options systemd.journald.forward_to_syslog=, - systemd.journald.forward_to_kmsg= + systemd.journald.forward_to_kmsg=, + systemd.journald.forward_to_console= and - systemd.journald.forward_to_console=. + systemd.journald.forward_to_wall=. When forwarding to the console, the TTY to log to can be changed with TTYPath=, @@ -410,12 +414,14 @@ MaxLevelSyslog= MaxLevelKMsg= MaxLevelConsole= + MaxLevelWall= Controls the maximum log level of messages that are stored - on disk, forwarded to syslog, kmsg or - the console (if that is enabled, see - above). As argument, takes one of + on disk, forwarded to syslog, kmsg, + the console or wall (if that is + enabled, see above). As argument, + takes one of emerg, alert, crit, @@ -436,9 +442,11 @@ written to disk and forwarded to syslog. Defaults to notice for - MaxLevelKMsg= and + MaxLevelKMsg=, info for - MaxLevelConsole=. + MaxLevelConsole= and + emerg for + MaxLevelWall=. diff --git a/man/kernel-command-line.xml b/man/kernel-command-line.xml index afcff7cbb9..dbfec61289 100644 --- a/man/kernel-command-line.xml +++ b/man/kernel-command-line.xml @@ -207,6 +207,7 @@ systemd.journald.forward_to_syslog= systemd.journald.forward_to_kmsg= systemd.journald.forward_to_console= + systemd.journald.forward_to_wall= Parameters understood by diff --git a/man/systemd-journald.service.xml b/man/systemd-journald.service.xml index 4d2cb40805..f0ce7aae64 100644 --- a/man/systemd-journald.service.xml +++ b/man/systemd-journald.service.xml @@ -142,11 +142,12 @@ systemd.journald.forward_to_syslog= systemd.journald.forward_to_kmsg= systemd.journald.forward_to_console= + systemd.journald.forward_to_wall= Enables/disables forwarding of collected log messages - to syslog, the kernel log buffer or - the system console. + to syslog, the kernel log buffer, the + system console or wall. See -- cgit v1.2.3-54-g00ecf