On 3/30/22 23:09, Nikolaos Milas wrote:
I am a bit confused (not surprisingly, as I am no expert).
Well, Linux distros change all the time...so we get confused all the time...
In my CentOS 7,in /usr/lib/systemd/system/systemd-journald.socket I see:
[Socket]
ListenStream=/run/systemd/journal/stdout
ListenDatagram=/run/systemd/journal/socket
ListenDatagram=/dev/log
> [..]
So, in order to achieve logging directly to syslog rather than to the
systemd journal would we remove the ListenDatagram=/dev/log entry and
leave the rest untouched?
Probably yes.
But do not remove it directly from packaged file
/usr/lib/systemd/system/systemd-journald.socket but instead follow the
instructions for overriding vendor settings.
See "Example 2" here:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Examples
BTW: It's different on RHEL8-alike systems where a separate
systemd-journald-dev-log.socket is present like I described before.
Well, this gets rapidly off-topic here though...
Ciao, Michael.