Re: freebsd sample startup script doesn't work
От | Vivek Khera |
---|---|
Тема | Re: freebsd sample startup script doesn't work |
Дата | |
Msg-id | 15089.33564.357867.132132@onceler.kciLink.com обсуждение исходный текст |
Ответ на | Re: freebsd sample startup script doesn't work (Peter Eisentraut <peter_e@gmx.net>) |
Список | 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 по дате отправления: