From: david.peyrieres@meteo.fr
To: pgsql-bugs@postgresql.org
Subject: BUG #7596: Problem with /etc/init.d/postgresql.9.x file
Date: Thu, 11 Oct 2012 09:29:59 +0000
Message-ID: <E1TMF5b-0003lt-Sc@wrigleys.postgresql.org> (raw)
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="/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.
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: david.peyrieres@meteo.fr
Subject: Re: BUG #7596: Problem with /etc/init.d/postgresql.9.x file
In-Reply-To: <E1TMF5b-0003lt-Sc@wrigleys.postgresql.org>
References: <E1TMF5b-0003lt-Sc@wrigleys.postgresql.org>
* 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