[syslog-ng] Redirect syslog-ng to ttyS0

Kjell Danielsen kjell.danielsen at hjemme.no
Sun Nov 18 19:39:21 CET 2007


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


time(NULL)                              = 1195026575
poll([{fd=13, events=0}, {fd=12, events=0}, {fd=11, events=0}, {fd=10, 
events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, 
events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, 
events=POLLIN}], 11, 100) = 0
poll([{fd=13, events=0}, {fd=12, events=0}, {fd=11, events=0}, {fd=10, 
events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, 
events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, 
events=POLLIN, revents=POLLIN}], 11, 3448000) = 1
recvfrom(3, "<165>Nov 14 07:49:40 AL[3581]: A"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\2\200\356E\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 187
time(NULL)                              = 1195026580
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026580
time(NULL)                              = 1195026580
poll([{fd=13, events=POLLOUT, revents=POLLOUT}, {fd=12, events=0}, {fd=11, 
events=0}, {fd=10, events=POLLOUT, revents=POLLOUT}, {fd=9, events=0}, {fd=8, 
events=0}, {fd=7, events=0}, {fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 11, 100) = 3
write(13, "Nov 14 07:49:40 lim1 AL[3581]: A"..., 188) = 188
write(10, "Nov 14 07:49:40 lim1 AL[3581]: A"..., 188) = 188
write(4, "Nov 14 07:49:40 lim1 AL[3581]: A"..., 188) = 188
time(NULL)                              = 1195026580
poll([{fd=13, events=0}, {fd=12, events=0}, {fd=11, events=0}, {fd=10, 
events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, 
events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, 
events=POLLIN}], 11, 100) = 0
poll([{fd=13, events=0}, {fd=12, events=0}, {fd=11, events=0}, {fd=10, 
events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, 
events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, 
events=POLLIN, revents=POLLIN}], 11, 3443000) = 1
recvfrom(3, "<165>Nov 14 07:49:44 AL[3581]: A"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\2\200\356E\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 56
time(NULL)                              = 1195026584
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026584
time(NULL)                              = 1195026584
poll([{fd=13, events=POLLOUT, revents=POLLOUT}, {fd=12, events=0}, {fd=11, 
events=0}, {fd=10, events=POLLOUT, revents=POLLOUT}, {fd=9, events=0}, {fd=8, 
events=0}, {fd=7, events=0}, {fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 11, 100) = 3
write(13, "Nov 14 07:49:44 lim1 AL[3581]: A"..., 57) = 57
write(10, "Nov 14 07:49:44 lim1 AL[3581]: A"..., 57) = 57
write(4, "Nov 14 07:49:44 lim1 AL[3581]: A"..., 57) = 57
time(NULL)                              = 1195026584
poll([{fd=13, events=0}, {fd=12, events=0}, {fd=11, events=0}, {fd=10, 
events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, 
events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, 
events=POLLIN}], 11, 100) = 0
poll([{fd=13, events=0, revents=POLLERR|POLLHUP}, {fd=12, events=0}, {fd=11, 
events=0}, {fd=10, events=0}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, 
events=0}, {fd=4, events=0}, {fd=6, events=POLLIN}, {fd=5, events=POLLIN}, 
{fd=3, events=POLLIN}], 11, 3439000) = 1
time(NULL)                              = 1195026596
close(13)                               = 0
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 0
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 3427000) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 155
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 156) = 156
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 156) = 156
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 100) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 165
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 10, 100) = 3
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 166) = 166
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 166) = 166
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 51
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 52) = 52
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 52) = 52
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 100) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 61
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 10, 100) = 3
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 62) = 62
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 62) = 62
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 126
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 127) = 127
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 127) = 127
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 100) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 136
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 10, 100) = 3
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 137) = 137
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 137) = 137
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 51
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 52) = 52
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 52) = 52
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 100) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 61
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 10, 100) = 3
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 62) = 62
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 62) = 62
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 148
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 149) = 149
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 149) = 149
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 100) = 1
recvfrom(3, "<181>Nov 14 07:50:00 mdsh[5063]:"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 158
time(NULL)                              = 1195026600
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026600
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 159) = 159
write(4, "Nov 14 07:50:00 lim1 mdsh[5063]:"..., 159) = 159
time(NULL)                              = 1195026600
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 0
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 3423000) = 1
recvfrom(3, "<165>Nov 14 07:50:05 AL[3581]: A"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 210
time(NULL)                              = 1195026605
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026605
time(NULL)                              = 1195026605
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:05 lim1 AL[3581]: A"..., 211) = 211
write(4, "Nov 14 07:50:05 lim1 AL[3581]: A"..., 211) = 211
time(NULL)                              = 1195026605
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 0
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN, 
revents=POLLIN}], 10, 3418000) = 1
recvfrom(3, "<165>Nov 14 07:50:09 AL[3581]: A"..., 2048, 0, 
{sa_family=AF_UNSPEC, sa_data="\200\277\'F\1\200\0\371\1\200\320\21\2\200"}, 
[0]) = 56
time(NULL)                              = 1195026609
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
time(NULL)                              = 1195026609
time(NULL)                              = 1195026609
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=POLLOUT, 
revents=POLLOUT}, {fd=9, events=0}, {fd=8, events=0}, {fd=7, events=0}, 
{fd=4, events=POLLOUT, revents=POLLOUT}, {fd=6, events=POLLIN}, {fd=5, 
events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 2
write(10, "Nov 14 07:50:09 lim1 AL[3581]: A"..., 57) = 57
write(4, "Nov 14 07:50:09 lim1 AL[3581]: A"..., 57) = 57
time(NULL)                              = 1195026609
poll([{fd=12, events=0}, {fd=11, events=0}, {fd=10, events=0}, {fd=9, 
events=0}, {fd=8, events=0}, {fd=7, events=0}, {fd=4, events=0}, {fd=6, 
events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}], 10, 100) = 0
poll( <unfinished ...>


More information about the syslog-ng mailing list