[CentOS] What keeps logging to my console?

Mon Oct 20 14:35:53 UTC 2008
Paul Bijnens <Paul.Bijnens at xplanation.com>

On 2008-10-20 16:22, Michael H. Warfield wrote:
> On Mon, 2008-10-20 at 12:51 +0200, Sorin Srbu wrote:
>> Michael H. Warfield <> scribbled on Friday, October 17, 2008 4:45 PM:
>>> man setterm:
>>>
>>>        -msg [on|off] (virtual consoles only)
>>>               Enables or disables the sending of kernel printk()
>>>               messages to the console.
> 
>> Is it possible to get rid of the iptables messages on the console as well,
>> with the above tweak, or is it specifically and only for the kernel?
> 
> 	iptables is in the kernel.
> 
> 	AFAIK, it's either via syslog or via printk.  If you've shut them both
> down, it should be gone.

It was thinking it is logged through klogd, and can be suppressed by
starting klogd with the e.g. "-c 3" option.
Change the bootoption of klogd in: /etc/sysconfig/syslog :

   KLOGD_OPTIONS="-x -c 3"

Well, at least AFAIK.


-- 
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens at xplanation.com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************