From owner-freebsd-questions@FreeBSD.ORG Wed May 3 15:41: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 18D6116A401 for ; Wed, 3 May 2006 15:41:45 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc6-cmbg1-0-0-cust82.cmbg.cable.ntl.com [82.10.236.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2638C43D46 for ; Wed, 3 May 2006 15:41:44 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.61 #1) id 1FbJTy-000DpS-SH by authid for ; Wed, 03 May 2006 16:41:42 +0100 Date: Wed, 3 May 2006 16:41:42 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20060503154142.GC9237@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200605021846.54440.fbsd-ml@scrapper.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f+W+jCU1fRNres8c" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: danielby@slightlystrange.org X-SA-Exim-Scanned: No (on catflap.slightlystrange.org); SAEximRunCond expanded to false Subject: Re: dhclient-exit-hooks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 15:41:45 -0000 --f+W+jCU1fRNres8c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > using sendmail to construct the email made no difference. > Still get this message >=20 > /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 >=20 > -----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 >=20 >=20 > 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. >=20 > 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. >=20 > In your script, >=20 > > #! /bin/sh >=20 > 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" >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20 --=20 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 / \ --f+W+jCU1fRNres8c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEWM82ixf5fBYiFmoRAvaSAJ9H7HhrwX39z/8RmDmJJeBFuKeCRgCfR9jg CQ9K8IozVVpNf2/BGX9mj24= =GlkR -----END PGP SIGNATURE----- --f+W+jCU1fRNres8c--