pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Enrique Cardozo Baudry <tomas.enrique.cardozo.baudry@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6074: postgresql service script
Date: Wed, 22 Jun 2011 12:47:29 GMT
Message-ID: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org> (raw)


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



view thread (4+ messages)  latest in thread

Message-ID: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>
Permalink:  ../201106221247.p5MClS5R015725@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201106221247.p5MClS5R015725@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tomas.enrique.cardozo.baudry@gmail.com
  Subject: Re: BUG #6074: postgresql service script
  In-Reply-To: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>
  References: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox