Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to avoid NetworkManager logs <info> in terminals
Date: Mon, 18 Feb 2008 06:52:17
Message-Id: 1203318445.25888.61.camel@orpheus
In Reply to: Re: [gentoo-user] How to avoid NetworkManager logs in terminals by Alejandro Bednarik
1 On Sun, 2008-02-17 at 18:08 -0200, Alejandro Bednarik wrote:
2 >
3 >
4 > 2008/2/16, Iain Buchanan <iaindb@××××××××××××.au>:
5
6 > try adding
7 > >/dev/null 2>&1
8 > to the end of it.
9
10 > Hi!
11 > about sudo /etc/init.d/net.eth0 restart >/dev/null 2>&1 I tried this
12 > before send this email, but the NetworkManager logs <info> and <debug>
13 > in the tty1 anyway, the only change is that i don't see any output in
14 > the terminal i run the command.
15
16
17 aaaaaaaaahhhhhhhhhhhh i see...
18
19 I thought you were on console 1, I didn't realise that NetworkManager
20 printed output to console 1 even if you started it from elsewhere... Now
21 I get it!
22
23 > about start-stop-daemon --start --quiet --exec ${processname} yes, i
24 > also tried your suggestion before send the email, but with the same
25 > bad result.
26
27 yes, won't work given what you've said...
28
29 > I not sure but for me, the parameter console=tty1 i have in the the
30 > kernel line i use in grub have something to do (i use fbsplash and
31 > fbcondecor), but is not the only reason, i check sabayon linux which
32 > use NetworkManager, fbsplash and fbconvecor just like the way i do,
33 > but NM don't do the same.
34
35 Sounds like NetworkManager is using syslog() to write to the log file,
36 and you have syslog set up to notify you. This usually happens by
37 printing messages to console 1! NetworkManager seems to translate glib
38 errors directly to syslog errors. Have a look at nm-logging.c if you
39 want to see more about that.
40
41 Anyway, depending on the logger you use (I use syslog-ng) you can set it
42 up not to be so verbose. syslog-ng allows you to filter based on
43 program name for example. man syslog-ng.conf for more info (or whatever
44 logger you use :)
45
46 Have a look at http://www.campin.net/syslog-ng.conf for some examples.
47
48 HTH,
49
50 --
51 Iain Buchanan <iaindb at netspace dot net dot au>
52
53 I can understand how they wouldn't let in those wild jungle apes, but what
54 about those really smart ones who live among us who rollerskate and smoke
55 cigars?
56
57 -- Homer Simpson, on Heaven
58 The Telltale Head
59
60 --
61 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] How to avoid NetworkManager logs <info> in terminals Ale <elcorreodeale@×××××.com>