Date: Wed, 07 Mar 2012 12:18:24 -0800 From: merlyn@stonehenge.com (Randal L. Schwartz) To: rc@freebsd.org Subject: need a shim between postgresql and pgpool startup Message-ID: <86r4x4dv1r.fsf@red.stonehenge.com>
next in thread | raw e-mail | index | archive | help
[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 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r4x4dv1r.fsf>