Re: freebsd sample startup script doesn't work - Mailing list pgsql-bugs

From Vivek Khera
Subject Re: freebsd sample startup script doesn't work
Date
Msg-id 15089.33564.357867.132132@onceler.kciLink.com
Whole thread Raw
In response to Re: freebsd sample startup script doesn't work  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
>>>>> "PE" == Peter Eisentraut <peter_e@gmx.net> 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: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-bugs by date:

Previous
From: "J.R. Onyschak"
Date:
Subject: Re: PostgreSQL bug in SELECT DISTINCT
Next
From: Vivek Khera
Date:
Subject: Re: freebsd sample startup script doesn't work