[syslog-ng] Redirect syslog-ng to ttyS0

Balazs Scheidler bazsi at balabit.hu
Tue Nov 20 11:45:48 CET 2007


On Sun, 2007-11-18 at 19:39 +0100, Kjell Danielsen wrote:
> Here is a new trace. I start the trace before I logged in on ttyS0.
> After I logged in the syslog output to ttyS0 stops, and I have to
> restart the server to get the syslog output on ttyS0.
> 
> Kjell

the reason syslog-ng stops, because it receives a POLLERR/POLLHUP event
in this case:

poll([{fd=13, events=0, revents=POLLERR|POLLHUP

Hm... did syslog-ng report any kind of error in this case? I'm expecting
an 


      msg_error("EOF occurred while idle",
                evt_tag_int("fd", self->fd->fd),
                NULL);

or, a

        msg_error("I/O error occurred while writing",
                  evt_tag_int("fd", fd->fd),
                  evt_tag_errno(EVT_TAG_OSERROR, errno),
                  NULL);

message. I can't see anything like this in the stace file, but maybe you
are not reading the internal() log source?

-- 
Bazsi



More information about the syslog-ng mailing list