Re: [systemd-devel] logging to a fifo pipe

2018-05-19 Thread John Reiser

I need to log to the journal with custom tags from a service that only
supports logging to syslog without any customization or logging to a
file.


On Linux if you know the ProcessID then use "/proc/$PID/fd/2" .

--
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] logging to a fifo pipe

2018-05-19 Thread Igor Bukanov
Hi,

I need to log to the journal with custom tags from a service that only
supports logging to syslog without any customization or logging to a
file. I cannot use /dev/stderr as the logging is done from a child
process that the main service process starts with /dev/stderr
redirected. I worked around that by having a named pipe connected to
the logger utility. But that required an extra two units (one for the
socket with the named pipe and another for the logger process) and an
extra process.

Is there any better way to do that?

Regards, Igor
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel