From owner-freebsd-questions@FreeBSD.ORG Thu May 4 00:37:45 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG 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 E0A9016A400 for ; Thu, 4 May 2006 00:37:45 +0000 (UTC) (envelope-from fbsd@a1poweruser.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF4343D48 for ; Thu, 4 May 2006 00:37:45 +0000 (GMT) (envelope-from fbsd@a1poweruser.com) Received: from barbish ([70.39.69.56]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060504003744.VVX14145.mta10.adelphia.net@barbish>; Wed, 3 May 2006 20:37:44 -0400 From: "fbsd" To: "Duane Whitty" Date: Wed, 3 May 2006 20:37:39 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <445933AB.1010506@greenmeadow.ca> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Cc: "freebsd-questions@FreeBSD. ORG" Subject: RE: dhclient-exit-hooks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 00:37:46 -0000 You missed this statement I posted > IF I execute the same logger statements from the command > line they work as expected. That only could happen if the log files were all ready in syslog.conf. Good try. You have good grasp of how logging works. -----Original Message----- From: Duane Whitty [mailto:duane@greenmeadow.ca] Sent: Wednesday, May 03, 2006 6:50 PM To: fbsd@a1poweruser.com Cc: freebsd-questions@FreeBSD. ORG Subject: Re: dhclient-exit-hooks fbsd wrote: > When this script runs the logger statements do not create any > message in the targeted log files. > IF I execute the same logger statements from the command > line they work as expected. Hi, Forgive my ignorance if it turns out I'm totally off track here but do you need a line in /etc/syslog.conf such as: !name-of-your-script *.* /var/log/dhcpd.log ^^^ or whatever level of logging you want I couldn't get named to log so to /etc/syslog.conf I added !named *.* /var/log/named.log and manually created /var/log/named.log to have messages of all levels logged. Just a shot in the dark... Best Regards, Duane Whitty -- duane@greenmeadow.ca