[PATCH v28 11/13] log: add support for systemd journal
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 25 17:56:46 CEST 2024
On Fri, 25 Oct 2024 18:33:40 +0300
Baruch Even <baruch at weka.io> wrote:
> Can we have an option to disable journal auto-detection?
> In my case I want to redirect the DPDK to our own tracing infrastructure
> and for that I use the fopencookie myself and redirect it to our own
> system. The journal will force it out and I'll need to ensure that the
> environment variable is not set, which is doable but I'd rather not need to
> mess with the environment and just set a flag in dpdk options to disable
> the journal.
>
The detection works on stderr being associated with a specific device that is
passed in by environment variable. Only systemd service is going to get this.
If you wanted to override, either change the service file.
If you redirect the with rte_openlog_stream() that should already override
the stderr. Stuff, probably need to add a check for that.
More information about the dev
mailing list