dhclient-exit-hooks

Daniel Bye freebsd-questions at slightlystrange.org
Wed May 3 15:41:45 UTC 2006


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 at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Norbert
> Papke
> Sent: Tuesday, May 02, 2006 9:47 PM
> To: fbsd at a1poweruser.com
> Cc: freebsd-questions at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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 / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060503/fa0652ec/attachment.pgp


More information about the freebsd-questions mailing list