pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig Ringer <craig@postnewspapers.com.au>
Cc: Tomas Enrique Cardozo Baudry <tomas.enrique.cardozo.baudry@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6074: postgresql service script
Date: Wed, 22 Jun 2011 23:52:13 -0400
Message-ID: <13224.1308801133@sss.pgh.pa.us> (raw)
In-Reply-To: <4E02B489.6070104@postnewspapers.com.au>
References: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org>
	<4E02B489.6070104@postnewspapers.com.au>

Craig Ringer <craig@postnewspapers.com.au> writes:
> On 22/06/11 20:47, Tomas Enrique Cardozo Baudry wrote:
>> 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 relevant part of the RHEL5 initscript is

	# Set defaults for configuration variables
	PGENGINE=/usr/bin
	PGPORT=5432
	PGDATA=/var/lib/pgsql/data
	PGLOG=/var/lib/pgsql/pgstartup.log
	
	# Override defaults from /etc/sysconfig/pgsql if file is present
	[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

As this indicates, you are supposed to change those settings with a
script in /etc/sysconfig/pgsql/ if you need to change 'em.  It's
intentional that those settings win out over postgresql.conf.

I'm not entirely sure that the OP is using the RHEL RPMs, though,
because the fragment he quoted didn't quite match this.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <13224.1308801133@sss.pgh.pa.us>
Permalink:  ../13224.1308801133@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13224.1308801133@sss.pgh.pa.us

 · 

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

* 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