Starting PostgreSQL on FreeBSD - Mailing list pgsql-admin

From Eimar Koort
Subject Starting PostgreSQL on FreeBSD
Date
Msg-id 20040105200914.F60144@dragon.vykk.vil.ee
Whole thread Raw
In response to PG_DUMP  ("omkar prabhu" <oprabhu@phildigital.com>)
List 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 by date:

Previous
From: Tsirkin Evgeny
Date:
Subject: Re: postgresql crushed with XLogWrite error
Next
From: "Nicky Mutinda"
Date:
Subject: Business Objects and Postgresql