Re: BUG #7596: Problem with /etc/init.d/postgresql.9.x file

From: "david(dot)peyrieres" <david(dot)peyrieres(at)meteo(dot)fr>
To: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7596: Problem with /etc/init.d/postgresql.9.x file
Date: 2012-10-12 06:03:55
Message-ID: 5077B2CB.8090402@meteo.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi, <br>
with rpm.<br>
</tt><br>
<br>
Ashesh Vashi a écrit :
<blockquote
cite="mid:CAG7mmowVVHR0hgo7+VPSLqjK1xMVhA657voMHcHDxEzM+dZgqg(at)mail(dot)gmail(dot)com"
type="cite">On Thu, Oct 11, 2012 at 2:59 PM, <span dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:david(dot)peyrieres(at)meteo(dot)fr"
target="_blank">david(dot)peyrieres(at)meteo(dot)fr</a>&gt;</span> wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The
following bug has been logged on the website:<br>
<br>
Bug reference:      7596<br>
Logged by:          David PEYRIERES<br>
Email address:      <a moz-do-not-send="true"
href="mailto:david(dot)peyrieres(at)meteo(dot)fr">david(dot)peyrieres(at)meteo(dot)fr</a><br>
PostgreSQL version: 9.1.4<br>
Operating system:   Red Hat<br>
Description:<br>
</blockquote>
<div>Hi David,</div>
<div><br>
</div>
<div>How did you install postgresql?</div>
<br clear="all">
<span
style="font-size: 13.3px; font-family: Verdana,Arial,Helvetica,sans-serif;"><span
style="font-size: x-small;"><span
style="font-family: 'courier new',monospace;">--</span><span
style="font-style: italic; font-family: 'courier new',monospace;"><span
style="font-size: small;"></span></span></span></span><br>
<div><span
style="font-size: 13.3px; font-family: Verdana,Arial,Helvetica,sans-serif;">
<div style="margin: 0pt 0pt 8px;">
<p style="margin: 0pt;"><span style="font-size: x-small;"><span
style="font-family: 'courier new',monospace;"></span><span
style="font-style: italic; font-family: 'courier new',monospace;"><span
style="font-size: small;">Thanks &amp; Regards,</span></span><br
style="font-style: italic; font-family: 'courier new',monospace;">
<span
style="font-style: italic; font-family: 'courier new',monospace; font-size: small;">Ashesh
Vashi</span></span></p>
</div>
</span></div>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello.<br>
I found a little bug in /etc/init.d/postgresql-9.x file (ok in 8.4 -
since<br>
9.x versions ?).<br>
In my case, I've 5 databases on same server. Each database is start/stop<br>
with this file 'service postgresql9.x start'.<br>
Unfortunately, it uses only same file for status "pidfile:<br>
/var/run/postmaster-9.2.pid".<br>
In my case and with this configuration, I have only one file for all<br>
databases.<br>
So, I've modified this file on all servers :<br>
<br>
1 - pidfile="/var/run/${NAME}.pid<br>
<br>
2 - and case test :<br>
....<br>
case "$1" in<br>
  ....<br>
 status)<br>
   status -p /var/run/postmaster-9.1.pid<br>
by<br>
   status -p $pidfile<br>
<br>
<br>
<br>
Thanks for all.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent via pgsql-bugs mailing list (<a moz-do-not-send="true"
href="mailto:pgsql-bugs(at)postgresql(dot)org">pgsql-bugs(at)postgresql(dot)org</a>)<br>
To make changes to your subscription:<br>
<a moz-do-not-send="true"
href="http://www.postgresql.org/mailpref/pgsql-bugs" target="_blank">http://www.postgresql.org/mailpref/pgsql-bugs</a><br>
</font></span></blockquote>
</div>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 9">
<meta name="Originator" content="Microsoft Word 9">
<link rel="File-List" href="./signature_david_MF_fichiers/filelist.xml">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>david.peyrieres</o:Author>
<o:LastAuthor>david.peyrieres</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2011-12-01T08:34:00Z</o:Created>
<o:LastSaved>2011-12-01T08:35:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>48</o:Words>
<o:Characters>275</o:Characters>
<o:Company>Meteo France</o:Company>
<o:Lines>2</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>337</o:CharactersWithSpaces>
<o:Version>9.6926</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:HyphenationZone>21</w:HyphenationZone>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><br>
<b><span
style="font-size: 10pt; font-family: Arial; color: rgb(0, 28, 77);">David
PEYRIERES<br>
</span></b><span
style="font-size: 7.5pt; font-family: Arial; color: rgb(0, 28, 77);">Direction
des Sytèmes d'Information<br>
Division Etudes et Développements<br>
<br>
Tel :   +33 (0)5.61.07.83.36 <br>
Fax :  +33 (0)5.61.07.81.09 <br>
</span><span
style="font-size: 10pt; font-family: Arial; color: rgb(0, 28, 77);"><a
href="mailto:david(dot)peyrieres(at)meteo(dot)fr">david(dot)peyrieres(at)meteo(dot)fr</a><br>
</span><b><span style="font-family: Arial; color: rgb(0, 28, 77);"><br>
METEO FRANCE</span></b><span
style="font-family: Arial; color: rgb(0, 28, 77);"> </span><span
style="font-size: 10pt; font-family: Arial; color: rgb(0, 28, 77);"><br>
<a href="http://www.meteo.fr/">www.meteo.fr</a> </span><span
style="font-size: 7.5pt; font-family: Arial; color: rgb(0, 28, 77);"><br>
42 avenue Gustave Coriolis <br>
31057 TOULOUSE Cédex </span></p>
</div>
</div>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 6.2 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2012-10-12 06:49:08 Re: BUG #7596: Problem with /etc/init.d/postgresql.9.x file
Previous Message Tom Lane 2012-10-11 19:36:02 Re: Fwd: race in pg_ctl start -w