LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2011, 11:40 PM   #1
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99
Blog Entries: 39

Rep: Reputation: 19
How do I stop services printing messages to my terminal?


Hello fellow Linux users,

Every now and then on my non-graphical console-orientated Debian Squeeze system, some services see it fit to spill their juices all over what I am doing.

A message about a service stopping/starting/restarting prints at the location of my cursor ontop of whatever I was doing at that moment, forcing me to either redraw ( if the currently running application supports it ), background and then foreground what I'm doing or clear the screen if at the shell.

Common examples:
Code:
 * Restarting OpenBSD Secure Shell server sshd
 * Restarting advanced system logger rsyslogd
How can I stop these messages appearing? Even better would be to send them to /dev/tty8 where I've configured rsyslogd to write.

Thanks in advance

Regards, William
 
Old 01-07-2011, 08:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by William (Dthdealer) View Post
How can I stop these messages appearing?
'man dmesg': 'dmesg -n [level]' where level is whatever kernel.h defines in 'man 2 syslog' (between 0 and 7).


Quote:
Originally Posted by William (Dthdealer) View Post
send them to /dev/tty8 where I've configured rsyslogd to write.
If they are not already duplicates of what you configured in your daemon configuration files or /etc/rsyslog.conf then they just are inconsequential console output.
 
1 members found this post helpful.
Old 01-07-2011, 08:55 PM   #3
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
Quote:
Originally Posted by unSpawn View Post
'man dmesg': 'dmesg -n [level]' where level is whatever kernel.h defines in 'man 2 syslog' (between 0 and 7).
Thankyou - I've now set my console loglevel to 6 instead of its default 7. Also from what I read, messages have a loglevel between & including 0 to 7, while the user chooses a loglevel between & including 1 to 8. The reason behind this is messages < loglevel ( as opposed to <= ) are displayed.



Quote:
If they are not already duplicates of what you configured in your daemon configuration files or /etc/rsyslog.conf then they just are inconsequential console output.
I don't know then why the default loglevel is set to 7 so these messages are printed. Most users do not care, and as you say, they are inconsequential.

Regards, William
 
  


Reply

Tags
console, service



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop annoying pop-up messages about installing a Task-Printing-Server ssenuta Linux - Hardware 2 08-15-2010 11:28 PM
I want to stop these particular messages in /var/log/messages smartyshan Linux - Security 7 05-31-2009 02:41 AM
Stop syslogd from sending messages to root terminal ddc441 Fedora 8 03-26-2009 05:15 PM
Stop error messages from wireless card from printing on console robertgparker Linux - Newbie 3 07-27-2004 09:29 AM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration