Hi, I want journald to send emergency messages to logged-in users, and I think this is a general enough way to do it.
These patches adds two new options for journald.conf: * ForwardToWall (default no) * MaxLevelWall (default emerg) When ForwardToWall is yes, journald forwards all log messages equal or below MaxLevelWall to utmp_wall(). A forwarded log message looks like this when it gets written to a users terminal: Broadcast message from systemd-journald@hostname (Wed 2014-03-05 13:00:00 CET): some-process[4711]: This is an emergency log message from some-process! Comments? If you think this the correct approach, please consider applying these patches :) Sebastian Thorarensen (2): utmp-wtmp: allow overriding username on wall journald: add support for wall forwarding Makefile.am | 2 + man/journald.conf.xml | 40 +++++++------ src/journal/journald-gperf.gperf | 2 + src/journal/journald-native.c | 4 ++ src/journal/journald-server.c | 7 +++ src/journal/journald-server.h | 2 + src/journal/journald-stream.c | 4 ++ src/journal/journald-syslog.c | 4 ++ src/journal/journald-wall.c | 59 ++++++++++++++++++++ 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 +- 16 files changed, 148 insertions(+), 26 deletions(-) create mode 100644 src/journal/journald-wall.c create mode 100644 src/journal/journald-wall.h -- 1.7.10.4 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel