BUG #6074: postgresql service script

From: "Tomas Enrique Cardozo Baudry" <tomas(dot)enrique(dot)cardozo(dot)baudry(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6074: postgresql service script
Date: 2011-06-22 12:47:29
Message-ID: 201106221247.p5MClS5R015725@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6074
Logged by: Tomas Enrique Cardozo Baudry
Email address: tomas(dot)enrique(dot)cardozo(dot)baudry(at)gmail(dot)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(dot)enrique(dot)cardozo(dot)baudry(at)gmail(dot)com, deshn(dot)co(dot)cc(at)gmail(dot)com
http://deshn.wikidot.com/howtos:bases-de-datos:postgresql:pgsql-service-scri
pt

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2011-06-22 14:36:15 Re: Where is pg_create_restore_point funciton in 9.1a2 ?
Previous Message Emanuel Calvo 2011-06-22 11:49:36 Re: Where is pg_create_restore_point funciton in 9.1a2 ?