Re: pg_ctl problem (was Re: BeOS Patch)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Cyril VELTER <cyril(dot)velter(at)libertysurf(dot)fr>, <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: pg_ctl problem (was Re: BeOS Patch)
Date: 2001-03-18 19:22:31
Message-ID: Pine.LNX.4.30.0103182021530.755-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> eval '$po_path' '$POSTOPTS' $logopt '&'
>
> if [ -f $PIDFILE ];then
> if [ "`sed -n 1p $PIDFILE`" = "$pid" ];then
> echo "$CMDNAME: cannot start postmaster" 1>&2
> echo "Examine the log output." 1>&2
> exit 1
> fi
> fi
>
> which is clearly not giving the postmaster enough time to remove or
> rewrite the pidfile. Shouldn't we put a "sleep 1" in there before
> the "if"?

This is probably the best we can do.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-18 19:27:24 Re: new version of contrib-intarray
Previous Message Bruce Momjian 2001-03-18 17:29:21 Re: pg_ctl problem (was Re: BeOS Patch)