From owner-freebsd-questions@FreeBSD.ORG Thu Feb 6 22:44:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 068AF825 for ; Thu, 6 Feb 2014 22:44:26 +0000 (UTC) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C213C1D4D for ; Thu, 6 Feb 2014 22:44:25 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:470:89e9:1:feed::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sentry.24cl.com", Issuer "Mike's Certificate Authority" (verified OK)) by oneyou.mcmli.com (Postfix) with ESMTPS id 3fKvpH0ySgz1DQG for ; Thu, 6 Feb 2014 17:44:23 -0500 (EST) Received: from BigBloat (bigbloat.24cl.home [10.20.1.4]) by sentry.24cl.com (Postfix) with ESMTP id 3fKvpF5RKsz1PX3 for ; Thu, 6 Feb 2014 17:44:21 -0500 (EST) Message-ID: <201402061744170611.021C490B@smtp.24cl.home> In-Reply-To: <201402061340490129.013D609C@smtp.24cl.home> References: <201402061340490129.013D609C@smtp.24cl.home> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Thu, 06 Feb 2014 17:44:17 -0500 From: "Mike." To: freebsd-questions@freebsd.org Subject: Re: dhclient and 10.0 Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Feb 2014 22:44:26 -0000 On 2/6/2014 at 1:40 PM Mike. wrote: |I wrote a simple dhclient-exit-hooks script consisting only of the |following three lines: | | | logger -t deh entering dhclient-exit-hooks | env | logger -t deh | logger -t deh leaving dhclient-exit-hooks | | |So far I've been using IPv4 DHCP only. | |When the lease on the IP address is renewed or changes, I see entries |in the messages log corresponding to those three lines. | |However, when the computer first boots up, I do not see any entries |in the messages log for the initial run of dhclient during the boot |process. | |I'd like to see those entries, but I cannot find a configuration |parameter that instructs dhclient to call the dhclient-exit-hooks |script during the inital running of dhclient. | |rc.conf contains: | | ifconfig_fxp0="DHCP" | dhclient_program="/sbin/dhclient" | | | |Am I missing something else that needs to be in rc.conf? ============= After taking a different approach, I found the answer ... The dhclient-exit-hooks does indeed run when dhclient is invoked during the boot cycle. The issue is that syslogd does not seem to be logging yet. If I create a file inside of dhclient-exit-hooks, then that file is present as a result of dhclient-exit-hooks running during the boot cycle. Sorry for the noise....