The following bug has been logged online:

Bug reference:      6074
Logged by:          Tomas Enrique Cardozo Baudry
Email address:      tomas.enrique.cardozo.bau...@gmail.com
PostgreSQL version: 8.4.4
Operating system:   Centos 5.6
Description:        postgresql service script
Details: 

configuring the posgresql.conf on another port the service doesnt load the
port variable, because in the postgresql service script is a variable PGPORT
and this rewrite the configuration variable

solution (replace the port number with a script variable reader):

PGDATA=/var/lib/pgsql/data
#PGPORT=5432  #### <--- this is the bug
PGPORT=`/bin/cat $PGDATA/postgresql.conf | /bin/grep ’^port' | /bin/sed
's/port = //g'`

tomas.enrique.cardozo.bau...@gmail.com, deshn.co...@gmail.com
http://deshn.wikidot.com/howtos:bases-de-datos:postgresql:pgsql-service-scri
pt

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to