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
utmp_wall() now takes an optional argument 'username_override' which
allows the caller to override the username shown on wall messages.
journald will use this to inform users that its wall messages comes from
'systemd-journald'.
---
src/shared/utmp-wtmp.c | 12 ++
rward_to_wall)
+server_forward_wall(s, priority, identifier, buf, ucred);
+
IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=syslog");
if (asprintf(&syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK)
>= 0)
diff --git a/src/journal/journal
On Wed, 5 Mar 2014, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Mar 05, 2014 at 01:45:51PM +0100, Sebastian Thorarensen wrote:
> > This will let journald forward logs as messages sent to all logged in
> > users (like wall).
> >
> > Two options are added:
> >
Thanks for the review. Here is an updated version of the patches.
Changes since v1:
* ForwardToWall is now enabled by default
* Fixed errors in journald-wall.c (a colon was printed even when there
was no identifier and pid)
* Coding style fixes
Sebastian Thorarensen (2):
utmp-wtmp: allow
utmp_wall() now takes an optional argument 'username_override' which
allows the caller to override the username shown on wall messages.
journald will use this to inform users that its wall messages comes from
'systemd-journald'.
---
src/shared/utmp-wtmp.c | 12 ++
STRING(iovec[n++], "_TRANSPORT=syslog");
if (asprintf(&syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK)
>= 0)
diff --git a/src/journal/journald-wall.c b/src/journal/journald-wall.c
new file mode 100644
index 000..1c42f49
--- /dev/null
+++ b/sr
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
server_forward_wall(s, priority, identifier, buf, ucred);
+
IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=syslog");
if (asprintf(&syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK)
>= 0)
diff --git a/src/journal/journald-wall.c b/src/journa
utmp_wall() now takes an optional argument 'username_override' which
allows the caller to override the username shown on wall messages.
journald will use this to inform users that its wall messages comes from
'systemd-journald'.
---
src/shared/utmp-wtmp.c | 12 ++
On Fri, 14 Mar 2014, Lennart Poettering wrote:
> Applied, but made some changes regarding allocation and how to deal with
> errors. Please check!
Thanks! Will do.
--
Sebastian Thorarensen
___
systemd-devel mailing list
systemd
11 matches
Mail list logo