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