[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Desabilitar ou direcionar mensagens de serviços do TTY



On 7/6/07, Wendell Almeida <wendell@ctech.srv.br> wrote:
>[...]
Isso acontece comigo quando seto os arquivos log_martians do proc:
echo 1 > /proc/sys/net/ipv4/conf/*/log_martians

As mensagens aparecem no log e também no TTY.
Até hoje não descobri uma forma de fazer o kernel redirecionar apenas
para o log.
Para as mensagens não ficarem aparecendo no TTY desabilito essa função:
echo 0 > /proc/sys/net/ipv4/conf/*/log_martians

   Alterando o arquivo /etc/syslog.conf descomentei as seguintes linhas:

#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
daemon,mail.*;\
	news.=crit;news.=err;news.=notice;\
	*.=debug;*.=info;\
	*.=notice;*.=warn	/dev/tty8

  E comentei toda a seção abaixo:

# The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
# you must invoke `xconsole' with the `-file' option:
#
#    $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
#daemon.*;mail.*;\
#	news.crit;news.err;news.notice;\
#	*.=debug;*.=info;\
#	*.=notice;*.=warn	|/dev/xconsole

   Aqui está funcionando sendo todas as mensagens apenas enviadas
para o virtual tty8.

   Obrigado a todos que me ajudaram a chegar a está conclusão.

   Abçs,
Zandre.



Reply to: