public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to avoid NetworkManager logs <info> in terminals
Date: Mon, 18 Feb 2008 16:37:25 +0930	[thread overview]
Message-ID: <1203318445.25888.61.camel@orpheus> (raw)
In-Reply-To: <60a795cd0802171208g583ffd7o8565c1777ddbc2e8@mail.gmail.com>


On Sun, 2008-02-17 at 18:08 -0200, Alejandro Bednarik wrote:
> 
> 
> 2008/2/16, Iain Buchanan <iaindb@netspace.net.au>:

>         try adding
>         >/dev/null 2>&1
>         to the end of it.

> Hi!
> about sudo /etc/init.d/net.eth0 restart >/dev/null 2>&1 I tried this
> before send this email, but the NetworkManager logs <info> and <debug>
> in the tty1 anyway, the only change is that i don't see any output in
> the terminal i run the command.


aaaaaaaaahhhhhhhhhhhh i see...

I thought you were on console 1, I didn't realise that NetworkManager
printed output to console 1 even if you started it from elsewhere... Now
I get it!

> about start-stop-daemon --start --quiet --exec ${processname} yes, i
> also tried your suggestion before send the email, but with the same
> bad result.

yes, won't work given what you've said...

> I not sure but for me, the parameter console=tty1 i have in the the
> kernel line i use in grub have something to do (i use fbsplash and
> fbcondecor), but is not the only reason, i check sabayon linux which
> use NetworkManager, fbsplash and fbconvecor just like the way i do,
> but NM don't do the same.

Sounds like NetworkManager is using syslog() to write to the log file,
and you have syslog set up to notify you.  This usually happens by
printing messages to console 1!  NetworkManager seems to translate glib
errors directly to syslog errors.  Have a look at nm-logging.c if you
want to see more about that.

Anyway, depending on the logger you use (I use syslog-ng) you can set it
up not to be so verbose.  syslog-ng allows you to filter based on
program name for example.  man syslog-ng.conf for more info (or whatever
logger you use :)

Have a look at http://www.campin.net/syslog-ng.conf for some examples.

HTH,

-- 
Iain Buchanan <iaindb at netspace dot net dot au>

I can understand how they wouldn't let in those wild jungle apes, but what
about those really smart ones who live among us who rollerskate and smoke
cigars?

		-- Homer Simpson, on Heaven
		   The Telltale Head

-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-02-18  6:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 13:02 [gentoo-user] How to avoid NetworkManager logs <info> in terminals Ale
2008-02-14 14:37 ` dell core2duo
2008-02-15  0:37 ` Iain Buchanan
2008-02-15 15:13   ` Alejandro Bednarik
2008-02-16 13:43     ` Iain Buchanan
2008-02-17 20:08       ` Alejandro Bednarik
2008-02-18  7:07         ` Iain Buchanan [this message]
2008-02-19 15:03           ` Ale
2008-02-19 23:01             ` Iain Buchanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1203318445.25888.61.camel@orpheus \
    --to=iaindb@netspace.net.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox