On Sun, 22 Apr 2007 20:41:41 +0800
William Kenworthy <[EMAIL PROTECTED]> wrote:

> Since a recent update to dhpcd, my logs are filling up with these
> messages (every 30 seconds).  The previous version wasnt so verbose,
> but I cant see where to modify the behaviour of the newer version -
> there seems like there is no quiet flag.  Any suggestions?
> 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: renewing lease of
> 203.59.216.218 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: leased xxx.xxx.xxx.xxx for
> 60 seconds 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding IP address
> xxx.xxx.xxx.xxx/24 
> Apr 22 20:34:22 moriah dhcpcd[19738]: eth0: adding default route via
> xxx.xxx.xxx.xxx metric 0
> 
> BillK
> 
> 
I couldn't see a 'quiet' mode for dhcpcd, but you could always try
filtering out dhcpcd messages from syslog.  Here's an example, but
don't hold it against me if you have to tweak it a bit.

# /etc/syslog-ng/syslog-ng.conf
# we will filter out dhcpcd messages
source src ( unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination messages { file("/var/log/messages");};
filter dhcpcd_filter { not program("dhcpcd"); };
log { source(src); filter(dhcpcd_filter); destination(messages); };

-- 
[EMAIL PROTECTED] mailing list

Reply via email to