Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYLn-0007wN-JQ for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 06:03:59 +0000 Received: from vivaldi.meteo.fr ([137.129.1.2]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYLl-0006Fj-2x for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 06:03:58 +0000 Received: from localhost (vivaldi.meteo.fr [127.0.0.1]) by vivaldi.meteo.fr (Postfix) with ESMTP id 001F318C3BD4; Fri, 12 Oct 2012 06:03:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at meteo.fr Received: from vivaldi.meteo.fr ([127.0.0.1]) by localhost (amavisd.meteo.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 8EpBBKlZ5PRB; Fri, 12 Oct 2012 06:03:55 +0000 (UTC) Received: from [137.129.6.101] (vaillant310.dpdsi.ad.meteo.fr [137.129.6.101]) by vivaldi.meteo.fr (Postfix) with ESMTP id BE5D818C3BF6; Fri, 12 Oct 2012 06:03:55 +0000 (UTC) Message-ID: <5077B2CB.8090402@meteo.fr> Date: Fri, 12 Oct 2012 08:03:55 +0200 From: "david.peyrieres" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Ashesh Vashi CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7596: Problem with /etc/init.d/postgresql.9.x file References: In-Reply-To: Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -5.6 (-----) X-Archive-Number: 201210/99 X-Sequence-Number: 34399 Hi,
with rpm.


Ashesh Vashi a =C3=A9crit=C2=A0:
On Thu, Oct 11, 2012 at 2:59 PM, <david.peyrieres@meteo.fr> wrote:
The following bug has been logged on the website:

Bug reference: =C2=A0 =C2=A0 =C2=A07596
Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0David PEYRIERES
Email address: =C2=A0 =C2=A0 =C2=A0david.peyrieres@meteo.fr PostgreSQL version: 9.1.4
Operating system: =C2=A0 Red Hat
Description:
Hi David,

How did you install postgresql?

--

Thanks & Regards,
Ashesh Vashi


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<= br> 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
=C2=A0 ....
=C2=A0status)
=C2=A0 =C2=A0status -p /var/run/postmaster-9.1.pid
by
=C2=A0 =C2=A0status -p $pidfile



Thanks for all.






--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)=
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


--


Da= vid PEYRIERES
D= irection des Syt=C3=A8mes d'Information
Division Etudes et D=C3=A9veloppements

Tel : =C2=A0 +33 (0)5.61.07.83.36
Fax :=C2=A0 +33 (0)5.61.07.81.09
david.peyrieres@meteo.fr
METEO FRANCE
www.meteo.fr <= br> 42 avenue Gustave Coriolis
31057 TOULOUSE C=C3=A9dex