Re: [GENERAL] Again: How the hell do I restart immediately

From: Simon Drabble <simon(at)eskimo(dot)com>
To: "Doran L(dot) Barton" <fozz(at)iodynamics(dot)com>
Cc: Ted Nolan SRI Augusta GA <ted(at)ags(dot)ga(dot)erg(dot)sri(dot)com>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Again: How the hell do I restart immediately
Date: 1999-10-08 21:00:47
Message-ID: Pine.LNX.3.96.991008165829.3612A-100000@dragon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 8 Oct 1999, Doran L. Barton wrote:

> Not long ago, Ted Nolan SRI Augusta GA proclaimed...
> > Hmm, perhaps I'm missing something, but since the postmaster doesnt go
> > into the background by default, couldn't you just run a script
> > with a loop creating postmasters as they die? Something like:
> >
> > #! /bin/sh
> >
> > while :
> > do
> > postmaster >> post.out 2>&1
> > done
>
> One problem I see with solutions like this is that they disregard the
> socket file kept in /tmp. The postmaster will croak if that file exists
> when it tries to start again. Hmm.
>
> -=Fozz
>
> --
> Doran L. Barton <fozz(at)iodynamics(dot)com>

would this not be better?

while :
do
test -e /tmp/.s.PGSQL.5432 && rm /tmp/.s.PGSQL.5432
postmaster >> post.out 2>&1
done

Simon.

--
"Aah - a voice of clue in a wilderness of luse."

Simon Drabble It's like karma for your brain.
simon(at)eskimo(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilles Darold 1999-10-08 23:56:29 unsuscribe
Previous Message Doran L. Barton 1999-10-08 20:07:00 Re: [GENERAL] Again: How the hell do I restart immediately