BUG #6074: postgresql service script - Mailing list pgsql-bugs

From Tomas Enrique Cardozo Baudry
Subject BUG #6074: postgresql service script
Date
Msg-id 201106221247.p5MClS5R015725@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #6074: postgresql service script
List pgsql-bugs
The following bug has been logged online:

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

pgsql-bugs by date:

Previous
From: "Hartmut "Hardy" Raschick"
Date:
Subject: BUG #6073: VPATH build fails in src/backend/replication for src tarball, repl_scanner.c not found
Next
From: Tom Lane
Date:
Subject: Re: Where is pg_create_restore_point funciton in 9.1a2 ?