Starting PostgreSQL on FreeBSD

Поиск
Список
Период
Сортировка
От Eimar Koort
Тема Starting PostgreSQL on FreeBSD
Дата
Msg-id 20040105200914.F60144@dragon.vykk.vil.ee
обсуждение исходный текст
Ответ на PG_DUMP  ("omkar prabhu" <oprabhu@phildigital.com>)
Список pgsql-admin
Hi,


PostgreSQL 7.3.4 on i386-portbld-freebsd4.9, compiled by GCC 2.95.4
pg_hba.conf has following entry:
#
local   all         pgsql                                            md5
#
hostname# /usr/local/etc/rc.d/010.pgsql.sh start
Password:
^C

So. If i try to start postgre (or machine boots up), it asks password.
/usr/local/etc/rc.d/010.pgsql.sh contains following:

case $1 in
start)
    touch ${logfile}
    chmod 600 ${logfile}
    chown pgsql:pgsql ${logfile}
    [ -x ${PGBIN}/pg_ctl ] && {
        su -l pgsql -c \
            "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w -l ${logfile}"
        echo -n ' pgsql'
    }
    ;;

Solution is to remove '-w' option.
            "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -l ${logfile}"


Hope it helps, if somebody get's stuck.

---
Eimar Koort
( eimar@vykk.vil.ee )


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tsirkin Evgeny
Дата:
Сообщение: Re: postgresql crushed with XLogWrite error
Следующее
От: "Nicky Mutinda"
Дата:
Сообщение: Business Objects and Postgresql