Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMF5e-0004ov-Ov for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 09:30:02 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMF5d-0006CM-IJ for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 09:30:02 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMF5c-000163-Gp for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 09:30:01 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TMF5b-0003lt-Sc for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 09:29:59 +0000 Date: Thu, 11 Oct 2012 09:29:59 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7596: Problem with /etc/init.d/postgresql.9.x file To: pgsql-bugs@postgresql.org From: david.peyrieres@meteo.fr X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/80 X-Sequence-Number: 34380 The following bug has been logged on the website: Bug reference: 7596 Logged by: David PEYRIERES Email address: david.peyrieres@meteo.fr PostgreSQL version: 9.1.4 Operating system: Red Hat Description: = Hello. I found a little bug in /etc/init.d/postgresql-9.x file (ok in 8.4 - since 9.x versions ?). In my case, I've 5 databases on same server. Each database is start/stop with this file 'service postgresql9.x start'. Unfortunately, it uses only same file for status "pidfile: /var/run/postmaster-9.2.pid". In my case and with this configuration, I have only one file for all databases. = So, I've modified this file on all servers : = 1 - pidfile=3D"/var/run/${NAME}.pid 2 - and case test : .... case "$1" in .... status) status -p /var/run/postmaster-9.1.pid by = status -p $pidfile Thanks for all. =