Chaos Mind getting into order

Gentoo: syslog-ng duplicate configuration elements

Posted on: 2008/12/06

I found at my /var/log/syslog:

syslog-ng[4102]: Internal error, duplicate configuration elements refer to the same persistent config; name=’affile_dd_writers(/dev/tty12)’

So I checked my /etc/syslog-ng/syslog-ng.conf and I found that:

$ grep ‘/dev/tty12’ /etc/syslog-ng/syslog-ng.conf
destination kern { file(“/var/log/kern.log”); file(“/dev/tty12”); };
destination console_all { file(“/dev/tty12”); };

After reading docs, I didn’t find any destination having 2 files entries. Great🙂 It looks like a typo. So I made some changes (a easy one):

$ diff /etc/syslog-ng/syslog-ng.conf.bak /etc/syslog-ng/syslog-ng.conf
35c35,36
< destination kern { file(“/var/log/kern.log”); file(“/dev/tty12”); };

> destination kern { file(“/var/log/kern.log”); };
> destination kern { file(“/dev/tty12”); };

Ok, got it working again.

Etiquetas: , ,

Deixe uma Resposta

Please log in using one of these methods to post your comment:

Logótipo da WordPress.com

Está a comentar usando a sua conta WordPress.com Terminar Sessão / Alterar )

Imagem do Twitter

Está a comentar usando a sua conta Twitter Terminar Sessão / Alterar )

Facebook photo

Está a comentar usando a sua conta Facebook Terminar Sessão / Alterar )

Google+ photo

Está a comentar usando a sua conta Google+ Terminar Sessão / Alterar )

Connecting to %s

%d bloggers like this: