I'm using a kernel module that sends warn (KERN_WARN ) log level messages to the console but I want them to only go to the logs. I would like only kernel messages that are log level error or higher to go to the console. So I added the following to the top of the default LFS /etc/syslog.conf file:

*.error /dev/console

However, this does not prevent the warning messages from going to the console. In fact, I even tried this:

*.* /dev/null

And STILL the warning messages go to the console. I'm at a loss as to why this is. Any help or guidance would be appreciated. I've looked at the man page for syslog and I couldn't find anything there as to why this would be happening.

Now what I did find out so far is that the command "setterm -msglevel 3" will prevent KERN_WARN messages from going to the console, but I'm concerned that this would interfere with syslog.conf which is where this stuff should be set anyway. Also, this command is terminal specific and I'm not sure how I would even execute it for each terminal. I don't want any KERN_WARN messages going to any console, even when nobody is logged in, otherwise it just periodically spams the heck out of the console.

Jason
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to