pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: mlaks <mlaks@bellatlantic.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgresql goes down need to restart (redhat postgresql service script) lock files removal avoid 2 postmasters
Date: Thu, 8 May 2003 13:40:33 -0500
Message-ID: <20030508184033.GA3731@wolff.to> (raw)
In-Reply-To: <200305081410.52791.mlaks@bellatlantic.net>
References: <200305081250.49994.mlaks@bellatlantic.net>
	<20030508175021.GA3335@wolff.to>
	<200305081410.52791.mlaks@bellatlantic.net>

On Thu, May 08, 2003 at 14:10:52 -0400,
  mlaks <mlaks@bellatlantic.net> wrote:
> Thank you for your response Bruno. I agree about the importance of using the 
> lines
> 
> #!/bin/sh
> exec 2>&1
> exec setuidgid postgres /usr/local/pgsql/bin/postmaster -D 
> /usr/local/pgsql/data
> 
> in the run file. However, what else must we put in as well?
> 
> My question is to understand the lock files for postgresql so I can deal with 
> the following:

Some of the lock files have to do with the init system. Those can be
ignored. Postgres also keeps a lock file and that is used to prevent
two postmasters from running at the same time. You probably don't want
to have a script remove that lock file, because if there really is
another postmaster running, starting a second one can be a disaster.




view thread (9+ messages)  latest in thread

Message-ID: <20030508184033.GA3731@wolff.to>
Permalink:  ../20030508184033.GA3731@wolff.to/
Also on:    postgresql.org/message-id/20030508184033.GA3731@wolff.to

 · 

reply

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-admin@postgresql.org
  Cc: bruno@wolff.to, mlaks@bellatlantic.net
  Subject: Re: Postgresql goes down need to restart (redhat postgresql service script) lock files removal avoid 2 postmasters
  In-Reply-To: <20030508184033.GA3731@wolff.to>
  References: <200305081250.49994.mlaks@bellatlantic.net> <20030508175021.GA3335@wolff.to> <200305081410.52791.mlaks@bellatlantic.net> <20030508184033.GA3731@wolff.to>

* 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