From: Chad R. Larson <clarson@eldocomp.com>
To: Matthew D. Fuller <fullermd@over-yonder.net>
To: Dave <dave@hawk-systems.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Postgres not starting at boot(FreeBSD) - startup
Date: Mon, 11 Mar 2002 11:16:57 -0700
Message-ID: <4.2.2.20020311111033.00c2f798@ecint.ecinet.com> (raw)
In-Reply-To: <20020311035458.I57293@over-yonder.net>
References: <DBEIKNMKGOBGNDHAAKGNEEILNAAA.dave@hawk-systems.com>
<20020310143824.H57293@over-yonder.net>
<DBEIKNMKGOBGNDHAAKGNEEILNAAA.dave@hawk-systems.com>
At 02:54 AM 3/11/2002 , Matthew D. Fuller wrote:
>It could also be said that having -w implemented as invoking psql to try
>to connect as the DB superuser assuming no password is a rather
>inappropriate way of going about it, but that's another can of worms.
It doesn't wait for the PID file to be created (at least, no on our 7.1.2
systems). It attempts to connect to a database using psql, and loops until
that connection is successful. Which it won't be if you've got a
password, because the script will wait for some entity to type the
password, and hang.
My fix here was a hack in pg_ctl, right at the bottom where the script is
looping on a psql attempt to connect to a database to prove the system is
up. I added a "-h localhost" to the psql invocation to force a TCP
connection, and then used "ident" instead of password for the authorization.
-crl
--
Chad R. Larson (CRL22) chad@eldocomp.com
Eldorado Computing, Inc. 602-604-3100
5353 North 16th Street, Suite 400
Phoenix, Arizona 85016-3228
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: clarson@eldocomp.com, fullermd@over-yonder.net, dave@hawk-systems.com, pgsql-general@postgresql.org
Subject: Re: Postgres not starting at boot(FreeBSD) - startup
In-Reply-To: <4.2.2.20020311111033.00c2f798@ecint.ecinet.com>
References: <DBEIKNMKGOBGNDHAAKGNEEILNAAA.dave@hawk-systems.com> <20020310143824.H57293@over-yonder.net> <4.2.2.20020311111033.00c2f798@ecint.ecinet.com>
* 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