[systemd-devel] How to log to journald using fifo?

Mantas Mikulėnas grawity at gmail.com
Wed Apr 13 12:38:03 UTC 2016


On Wed, Apr 13, 2016 at 2:43 PM, Samuel Williams <
space.ship.traveller at gmail.com> wrote:

> I guess what I'm proposing is not a specific workaround but a way for
> legacy software which can only log to a file to get it's data into
> journald. There is plenty of software like that, unfortunately. It's a
> pragmatic option.
>
> In this specific case, I'm referring to Nginx in daemon mode, which closes
> /dev/stderr as far as I can tell, and then spawns passenger, which can only
> log to a file. There is no way to hook up passenger to /dev/stderr.
>
> The proposed service allows anyone to set up a fifo for logging in this
> situation, it's very trivial and easy to set up, but I suspect there is
> more than just one person with this issue.
>

If you're going to run a service anyway, could you use e.g. rsyslog's
imfile → omjournal modules?

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160413/9ae0129e/attachment.html>


More information about the systemd-devel mailing list