From owner-freebsd-questions@FreeBSD.ORG Wed May 3 16:17:11 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 6A94716A414 for ; Wed, 3 May 2006 16:17:11 +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 AC05C43D46 for ; Wed, 3 May 2006 16:17:07 +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 <20060503161706.LISK14145.mta10.adelphia.net@barbish>; Wed, 3 May 2006 12:17:06 -0400 From: "fbsd" To: "Daniel Bye" , Date: Wed, 3 May 2006 12:17:00 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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: <20060503154142.GC9237@catflap.slightlystrange.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Cc: 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: Wed, 03 May 2006 16:17:11 -0000 What goes in "your_script_service"? Is it suppose to be script name dhclient-exit-hooks? Is the # comment char to be removed? -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Daniel Bye Sent: Wednesday, May 03, 2006 11:42 AM To: freebsd-questions@freebsd.org Subject: Re: dhclient-exit-hooks On Wed, May 03, 2006 at 08:07:39AM -0400, fbsd wrote: > I changed #! /bin/sh to #!/bin/sh it had no effect. > Logger command still not producing output. > > using sendmail to construct the email made no difference. > Still get this message > > /libexec/ld-elf.so.1: Shared object "libpcre.so.0" not found, > required by "send-mail" Try putting something like this in your script file: # PROVIDE: your_script_service # REQUIRE: SERVERS If my understanding is correct, this should ensure that your script will not be called until after the dummy dependency SERVERS is run, which requires that ldconfig has already run. Note: not tested, not even sure it'll work, but it can't hurt to try. In any event, rcorder(8) might help. Dan > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Norbert > Papke > Sent: Tuesday, May 02, 2006 9:47 PM > To: fbsd@a1poweruser.com > Cc: freebsd-questions@freebsd.org > Subject: Re: dhclient-exit-hooks > > > On Tuesday 02 May 2006 06:12, fbsd wrote: > > IF I execute the cat command to issue the notification email > > from the command line it works fine, but when used in the > > script I get these messages during boot process. > > I am running postfix launched by the sendmail wrappers > > on a FreeBSD 6.0 system. > > > > "~/.mailrc": No match. > > Use sendmail(8) rather than mail(1). mail(1) expects to be run from > a user > session and looks for the user's preferences stored in the user's > ,mailrc > file. No user is available during the boot process. > > In your script, > > > #! /bin/sh > > Also, try removing the space between "#!" and "/bin/sh". It may be > causing > some weirdness. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \