Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 18CBFB5DBE1 for ; Wed, 22 Jun 2011 09:47:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 74806-02 for ; Wed, 22 Jun 2011 12:47:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 52CBDB5DBC9 for ; Wed, 22 Jun 2011 09:47:29 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p5MClT7c015726 for ; Wed, 22 Jun 2011 12:47:29 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p5MClS5R015725; Wed, 22 Jun 2011 12:47:29 GMT (envelope-from www) Date: Wed, 22 Jun 2011 12:47:29 GMT Message-Id: <201106221247.p5MClS5R015725@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6074: postgresql service script From: "Tomas Enrique Cardozo Baudry" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201106/191 X-Sequence-Number: 30570 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