From owner-freebsd-rc@FreeBSD.ORG Wed Mar 7 20:38:09 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 985DB106568E for ; Wed, 7 Mar 2012 20:38:09 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from mail.mroute.net (lax-gw06.mailroute.net [199.89.0.106]) by mx1.freebsd.org (Postfix) with ESMTP id 826408FC17 for ; Wed, 7 Mar 2012 20:38:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lax-gw06.mroute.net (Postfix) with ESMTP id 9B5DFCBCE for ; Wed, 7 Mar 2012 20:21:01 +0000 (GMT) X-Virus-Scanned: by MailRoute Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by lax-gw06.mroute.net (Postfix) with ESMTP id 8B9E8CBBC for ; Wed, 7 Mar 2012 20:20:45 +0000 (GMT) Received: by red.stonehenge.com (Postfix, from userid 1001) id 86BD516EA; Wed, 7 Mar 2012 12:20:45 -0800 (PST) From: merlyn@stonehenge.com (Randal L. Schwartz) To: freebsd-rc@freebsd.org x-mayan-date: Long count = 12.19.19.3.11; tzolkin = 1 Chuen; haab = 19 Kayab Date: Wed, 07 Mar 2012 12:20:44 -0800 Message-ID: <86mx7sduxv.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: need a shim between postgresql and pgpool startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2012 20:38:09 -0000 [not on list... please keep me cc'ed] Apparently, the postgresql start returns before postgresql is fully "warmed up". The next thing I start is pgpool, and pgpool aborts if it can't connect to postgres. What would the best way be to insert a 2 second delay between the two starts, or better yet, ensure pg was up before pgpool started, *without* editing the rc.d file from either of the ports (I hate having local mods like that). I'm thinking of adding some sort of pgpool_startpre, or maybe a shim that uses requires postgresql and before pgpool. Can I put pgpool_startpre() in my rc.conf file? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion