Received: from ecint.ecinet.com (smtp.eldocomp.com [205.159.99.3]) by postgresql.org (Postfix) with ESMTP id 698FF476382; Mon, 11 Mar 2002 13:17:25 -0500 (EST) Received: from CHAD-LAP (chad-lap.ecinet.com [192.168.22.228]) by ecint.ecinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id GWZR4ZST; Mon, 11 Mar 2002 11:24:02 -0700 Message-Id: <4.2.2.20020311111033.00c2f798@ecint.ecinet.com> X-Sender: clarson@ecint.ecinet.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Mon, 11 Mar 2002 11:16:57 -0700 To: "Matthew D. Fuller" , Dave From: "Chad R. Larson" Subject: Re: Postgres not starting at boot(FreeBSD) - startup Cc: pgsql-admin@postgresql.org, pgsql-general@postgresql.org In-Reply-To: <20020311035458.I57293@over-yonder.net> References: <20020310143824.H57293@over-yonder.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200203/183 X-Sequence-Number: 3717 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