[systemd-devel] [RFC][PATCH v3 0/2] journald: add support for wall forwarding
Sebastian Thorarensen
sebth at naju.se
Thu Mar 13 16:37:56 PDT 2014
These patches add two new options for journald.conf:
* ForwardToWall (default yes)
* MaxLevelWall (default emerg)
When ForwardToWall is yes, journald forwards all log messages equal or
below MaxLevelWall to utmp_wall(). This can be used to send emergency
messages to logged-in users. A forwarded log message looks like this when
it gets written to a user's terminal:
Broadcast message from systemd-journald at hostname (Wed 2014-03-05
13:00:00 CET):
some-process[4711]: This is an emergency log message from some-process!
See
http://lists.freedesktop.org/archives/systemd-devel/2014-March/017610.html
for v1 of this patch.
Changes since v3:
* Added missing documentation of new kernel parameter
systemd.journald.forward_to_wall= to kernel-command-line(7) and
systemd-journald.service(8)
Sebastian Thorarensen (2):
utmp-wtmp: allow overriding username on wall
journald: add support for wall forwarding
Makefile.am | 2 +
man/journald.conf.xml | 40 +++++++-----
man/kernel-command-line.xml | 1 +
man/systemd-journald.service.xml | 5 +-
src/journal/journald-gperf.gperf | 2 +
src/journal/journald-native.c | 4 ++
src/journal/journald-server.c | 8 +++
src/journal/journald-server.h | 2 +
src/journal/journald-stream.c | 4 ++
src/journal/journald-syslog.c | 4 ++
src/journal/journald-wall.c | 67 ++++++++++++++++++++
src/journal/journald-wall.h | 26 ++++++++
src/journal/journald.conf | 2 +
src/shared/utmp-wtmp.c | 12 ++--
src/shared/utmp-wtmp.h | 2 +-
src/shutdownd/shutdownd.c | 2 +-
src/systemctl/systemctl.c | 4 +-
.../tty-ask-password-agent.c | 2 +-
18 files changed, 162 insertions(+), 27 deletions(-)
create mode 100644 src/journal/journald-wall.c
create mode 100644 src/journal/journald-wall.h
--
1.7.10.4
More information about the systemd-devel
mailing list