Have redirected syslog to ttyS0. The logging to ttyS0 stops when I login to ttyS0 (as a terminal). Have to restart syslog to start the logging again. From my /etc/syslog-ng/syslog-ng.conf: filter f_mxone { facility(local4, local5, local6, auth) and match(“Alarm”); } destination mx_com1 {file(“/dev/ttyS0”); }; log { source(src); filter(f_mxone); destination(mx_com1); };
From /etc/inittab :
S0:2345:respawn:/sbin/agetty -L 9600 ttyS0 vt102 I use Suse Linux (SLES 10) and syslog-ng 1.6.8 Can anyone help? Kjell
Hi, kjell.danielsen@hjemme.no <kjell.danielsen@hjemme.no> [20071019 15:05:51 +0200]:
Have redirected syslog to ttyS0. The logging to ttyS0 stops when I login to ttyS0 (as a terminal). Have to restart syslog to start the logging again. From my /etc/syslog-ng/syslog-ng.conf:
filter f_mxone { facility(local4, local5, local6, auth) and match(“Alarm”); } destination mx_com1 {file(/dev/ttyS0); }; log { source(src); filter(f_mxone); destination(mx_com1); };
From /etc/inittab :
S0:2345:respawn:/sbin/agetty -L 9600 ttyS0 vt102
This really does feel like a 'device already open' issue. My hunch is that you would be better off (if it's possible) of pipe()ing the data to the serial port. Not something I have tried I'm afraid though. Cheers Alex
On Fri, 2007-10-19 at 14:56 +0100, Alexander Clouter wrote:
Hi,
kjell.danielsen@hjemme.no <kjell.danielsen@hjemme.no> [20071019 15:05:51 +0200]:
Have redirected syslog to ttyS0. The logging to ttyS0 stops when I login to ttyS0 (as a terminal). Have to restart syslog to start the logging again. From my /etc/syslog-ng/syslog-ng.conf:
filter f_mxone { facility(local4, local5, local6, auth) and match(“Alarm”); } destination mx_com1 {file(/dev/ttyS0); }; log { source(src); filter(f_mxone); destination(mx_com1); };
From /etc/inittab :
S0:2345:respawn:/sbin/agetty -L 9600 ttyS0 vt102
Hmm.. can you strace syslog-ng to see what happens when you log in? -- Bazsi
participants (3)
-
Alexander Clouter
-
Balazs Scheidler
-
kjell.danielsen@hjemme.no