X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 13E63476332 for ; Thu, 8 May 2003 13:49:10 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 43D87475EE2 for ; Thu, 8 May 2003 13:49:08 -0400 (EDT) Received: (qmail 3357 invoked by uid 500); 8 May 2003 17:50:21 -0000 Date: Thu, 8 May 2003 12:50:21 -0500 From: Bruno Wolff III To: mlaks Cc: pgsql-admin@postgresql.org Subject: Re: Postgresql goes down need to restart (redhat postgresql service script) lock files removal avoid 2 postmasters Message-ID: <20030508175021.GA3335@wolff.to> Mail-Followup-To: mlaks , pgsql-admin@postgresql.org References: <200305081250.49994.mlaks@bellatlantic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305081250.49994.mlaks@bellatlantic.net> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/94 X-Sequence-Number: 8656 On Thu, May 08, 2003 at 12:50:49 -0400, mlaks wrote: > > My goal is to use DJ Bernsteins daemonstools to make sure that my Postgresql > process goes back up unattended if it goes down for some reason. So I will be > substituting daemontools for the postgresql service script. > Thus I want to know what lock files to remove to make sure all is ok. I also > want to follow Tom Lanes's advice and not shoot myself in the foot by > creating two different postmaster processes working the same database!!!! This is what I put in my run file: #!/bin/sh exec 2>&1 exec setuidgid postgres /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data I use multilog for logging as you normally would.