From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JRTzv-0005KC-9j for garchives@archives.gentoo.org; Tue, 19 Feb 2008 15:03:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 972B1E0531; Tue, 19 Feb 2008 15:03:02 +0000 (UTC) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.233]) by pigeon.gentoo.org (Postfix) with ESMTP id 8538FE0531 for ; Tue, 19 Feb 2008 15:03:02 +0000 (UTC) Received: by qb-out-0506.google.com with SMTP id z1so1997309qbc.10 for ; Tue, 19 Feb 2008 07:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=T2wciNVqts3zZYaKdQKOYVCofZSfgrbQz8hA7PvF+v8=; b=wKMZVjkTDgj52yIvdYuVmTV+uCOpEYlbSMoB4Mh5160n8wS0dM0LBpOb5BGJoaic+QU6g7boaLMbAlczGDm87j4J7djMZtECPHp6FCS8bfwL3jHPbI7wVF1rpmhLOh+MfHuuweDpfmGtA9WnMbRmgDhSnKtrNCoEqhLADdtaQr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UolxgJMNAg3CH1e3v5lI+ng5phlOvMNRQJaIXXryGIPfyGuXkXIUvMi4Y3hdAf2gqitBNUWDhHDKeUEwmtBo/pvsqd0WkgDvqQGKa9+GN7utbdxzBWzdHjRPCoqAP/IZXVdjLbRYD8mKTAAfrhRqG9iPpoyjgRZoZvaDqrnvNPA= Received: by 10.114.166.1 with SMTP id o1mr3098590wae.71.1203433381734; Tue, 19 Feb 2008 07:03:01 -0800 (PST) Received: by 10.114.38.5 with HTTP; Tue, 19 Feb 2008 07:03:01 -0800 (PST) Message-ID: <60a795cd0802190703o193304dcw7b1f0b21c3985605@mail.gmail.com> Date: Tue, 19 Feb 2008 12:03:01 -0300 From: Ale To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to avoid NetworkManager logs in terminals In-Reply-To: <1203318445.25888.61.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21043_27497255.1203433381730" References: <60a795cd0802140502p2e857464i76f5daa5e5f72f9@mail.gmail.com> <1203035864.7445.3.camel@orpheus> <60a795cd0802150713i712cb0eet2cf65a43cbb8bb32@mail.gmail.com> <1203169386.25888.21.camel@orpheus> <60a795cd0802171208g583ffd7o8565c1777ddbc2e8@mail.gmail.com> <1203318445.25888.61.camel@orpheus> X-Archives-Salt: ecb2a5af-2c21-4705-b8ef-8cd42a90d175 X-Archives-Hash: 319adb2497dfbb4ff45694bd84f3e57f ------=_Part_21043_27497255.1203433381730 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/2/18, Iain Buchanan : > > > On Sun, 2008-02-17 at 18:08 -0200, Alejandro Bednarik wrote: > > > > > > 2008/2/16, Iain Buchanan : > > > 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 and > > 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 > > 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 > > You rock! that was the key of my problem, i just added syslog-ng to the default run level and i don't get more that odd behavior of NetworkManager. Now is time to configure syslog-ng properly. Many thanks! :D Cheers! ------=_Part_21043_27497255.1203433381730 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2008/2/18, Iain Buchanan <iaindb@netspace.net.au>:

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


You rock! that was the key of my problem, i just added syslog-ng to the default run level and i don't get more that odd behavior of NetworkManager. Now is time to configure syslog-ng properly.

Many thanks! :D

Cheers!
------=_Part_21043_27497255.1203433381730-- -- gentoo-user@lists.gentoo.org mailing list