need a shim between postgresql and pgpool startup

Randal L. Schwartz merlyn at stonehenge.com
Wed Mar 7 20:38:09 UTC 2012


[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 at 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


More information about the freebsd-rc mailing list