From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 08:47:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B197937B401 for ; Thu, 19 Jun 2003 08:47:17 -0700 (PDT) Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E7F543FBF for ; Thu, 19 Jun 2003 08:47:16 -0700 (PDT) (envelope-from webmaster@swedehost.com) Received: from thor.swedehost.com (h129n2fls33o804.telia.com [217.209.211.129]) by mailg.telia.com (8.12.9/8.12.9) with ESMTP id h5JFlEDh029135 for ; Thu, 19 Jun 2003 17:47:15 +0200 (CEST) X-Original-Recipient: From: Hasse Organization: The Valhalla Project To: FreeBSD Questions Date: Thu, 19 Jun 2003 17:47:19 +0200 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306191747.19538.webmaster@swedehost.com> Subject: dhclient filling up my logfiles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 15:47:18 -0000 Hi everybody. Running FreeBSD 4.8-Stable. I'm connected to the internet by ADSL and dynamic IP. Dhcp-client keeps filling up my /var/log/messages. Makes a log-entry every 10th minute. Jun 19 17:35:56 odin dhclient: New Network Number: 217.209.211.0 Jun 19 17:35:56 odin dhclient: New Broadcast Address: 217.209.211.255 Jun 19 17:44:48 odin dhclient: New Network Number: 217.209.211.0 Jun 19 17:44:48 odin dhclient: New Broadcast Address: 217.209.211.255 I'm running it with a practically empty dhclient.conf file. Only added one line to preserve my resolv.conf file. prepend domain-name-servers 127.0.0.1; According to the man-page dhclient(8), it's possible to add a "-q" switch to only log errors. The client normally prints a startup message and displays the protocol sequence to the standard error descriptor until it has acquired an address, and then only logs messages using the syslog (3) facility. The -q flag prevents any messages other than errors from being printed to the standard error descriptor. I've tried to put it in rc.conf like this : ifconfig_xl0="DHCP" dhcp_program="/sbin/dhclient" dhcp_flags="-q" But it still logs every connection. -- Regards Hasse Webmaster @ Swedehost.com