>>>>> "Lennart" == Lennart Poettering <[email protected]> writes:

    Lennart> On Wed, 26.11.14 11:04, Gergely Nagy 
([email protected]) wrote:
    >> This works beautifully, except there's one problem:
    >> 
    >> Nov 26 10:41:05 eowyn systemd-journal[14843]: Forwarding to syslog 
missed 1343 messages.
    >> 
    >> On Debian, syslog forwarding is enabled by default, and since syslog-ng
    >> reads from the journal, there's nothing listening on
    >> /run/systemd/journal/syslog, and I get spammed with messages like the
    >> one above.

    Lennart> Hmmm, we only increase the counter when we get EAGAIN from the
    Lennart> socket. Normally, if nobody is listening on the other side we
    Lennart> shouldn't get EAGAIN, we should get ECONNREFUSED or so.

    Lennart> Most likely for some reason "syslog.socket" gets started (which
    Lennart> establishes the socket), but nothing is then started behind it? 
That
    Lennart> sounds wrong.

Yep, it turns out that was the issue. syslog-ng.service had a
Requires=syslog.socket, a left over from an older version which did not
support reading from the journal. It appears that removing that line
disabled starting the socket, and the forwarding errors stopped too.

    Lennart> Note that in systemd upstream we don't do forward-to-syslog 
anymore,
    Lennart> simply because it turned out to be really slow when nobody is
    Lennart> listening on the socket, and rsyslog didn't use it anymore. Does
    Lennart> Debian turn this on after all?

Yes, because rsyslog (the default syslogd in debian) does not have the
journald reader enabled (or at least, not as a default), as far as I
remember.

-- 
|8]

Attachment: signature.asc
Description: PGP signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to