>>>>> "PE" == Peter Eisentraut <[EMAIL PROTECTED]> writes:

>> Also, the following line in the start action of the sript is useful:
>> 
>> /sbin/ldconfig -m $prefix/lib

PE> You ought to run this once, not every time the system starts.

No, FreeBSD does *not* cache this info.  You need to run it on every
system startup, unless you're libs are in /usr/lib or /usr/local/lib
or you've altered FreeBSD's setting of ldconfig_paths in the system
startup scripts.

Here's what I'm using, as file /usr/local/etc/rc.d/00postgres-client.sh,
as opposed to running it in the server startup script.

--cut here--
#!/bin/sh

case "$1" in
        start)
                /sbin/ldconfig -m /usr/local/pgsql/lib
                ;;
        stop)
                ;;
        *)
                echo ""
                echo "Usage: `basename $0` { start | stop }"
                echo ""
                exit 64
                ;;
esac

--cut here--

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to