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 )