1 |
On Sun, 22 Apr 2007 20:41:41 +0800 |
2 |
William Kenworthy <billk@×××××××××.au> wrote: |
3 |
|
4 |
> Since a recent update to dhpcd, my logs are filling up with these |
5 |
> messages (every 30 seconds). The previous version wasnt so verbose, |
6 |
> but I cant see where to modify the behaviour of the newer version - |
7 |
> there seems like there is no quiet flag. Any suggestions? |
8 |
> |
9 |
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: renewing lease of |
10 |
> 203.59.216.218 |
11 |
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: leased xxx.xxx.xxx.xxx for |
12 |
> 60 seconds |
13 |
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding IP address |
14 |
> xxx.xxx.xxx.xxx/24 |
15 |
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding default route via |
16 |
> xxx.xxx.xxx.xxx metric 0 |
17 |
> |
18 |
> BillK |
19 |
> |
20 |
> |
21 |
I couldn't see a 'quiet' mode for dhcpcd, but you could always try |
22 |
filtering out dhcpcd messages from syslog. Here's an example, but |
23 |
don't hold it against me if you have to tweak it a bit. |
24 |
|
25 |
# /etc/syslog-ng/syslog-ng.conf |
26 |
# we will filter out dhcpcd messages |
27 |
source src ( unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; |
28 |
destination messages { file("/var/log/messages");}; |
29 |
filter dhcpcd_filter { not program("dhcpcd"); }; |
30 |
log { source(src); filter(dhcpcd_filter); destination(messages); }; |
31 |
|
32 |
-- |
33 |
gentoo-user@g.o mailing list |