pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Tomas Enrique Cardozo Baudry <tomas.enrique.cardozo.baudry@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6074: postgresql service script
Date: Thu, 23 Jun 2011 11:35:37 +0800
Message-ID: <4E02B489.6070104@postnewspapers.com.au> (raw)
In-Reply-To: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>
References: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>

On 22/06/11 20:47, Tomas Enrique Cardozo Baudry wrote:
> 
> 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

I'm pretty sure that init script is part of CentOS (probably really part
of Red Hat Enterprise Linux), not part of PostgreSQL.

The script should *not* respect values from the environment; it's a good
thing that it doesn't. Otherwise setting PGPORT to tell psql what to do
would as a side effect change what port the server listened on if you
restarted it from that shell!

What the script should do is get those settings from /etc/sysconfig or
/etc/default (dunno which CentOS uses) so you don't have to hack the
init script directly.

--
Craig Ringer



view thread (4+ messages)  latest in thread

Message-ID: <4E02B489.6070104@postnewspapers.com.au>
Permalink:  ../4E02B489.6070104@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4E02B489.6070104@postnewspapers.com.au

 · 

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: craig@postnewspapers.com.au, tomas.enrique.cardozo.baudry@gmail.com
  Subject: Re: BUG #6074: postgresql service script
  In-Reply-To: <4E02B489.6070104@postnewspapers.com.au>
  References: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org> <4E02B489.6070104@postnewspapers.com.au>

* 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