installing tb-3 with postgresql

Joe Marcus Clarke marcus at marcuscom.com
Sun Sep 14 02:49:26 EDT 2008


On Sat, 2008-09-13 at 23:34 -0700, Ade Lovett wrote:
> On Sep 13, 2008, at 10:52 , Max Brazhnikov wrote:
> > tinderd does work ever with this error, so the problem is not  
> > critical.
> > The problem is indeed with tinderd/postgres race at boot. I can  
> > reproduce the
> > error when starting tinderd with postgres stopped.
> 
> Unfortunately, I don't see a way around this since as yet, the REQUIRE  
> keyword doesn't understand the capability of "or".
> 
> ie: in the tinderd rc script:
> 
> # PROVIDE: tinderd
> # REQUIRE: mysql OR postgresql
> 
> though this also doesn't address the issue of tinderd running on a  
> different host to the SQL server.
> 
> All is not lost, however.  Since we know whether we're using mysql or  
> postgresql at install time, it would be relatively straightforward to  
> add an extra question "Is the SQL server running on the same host as  
> tinderd?", and add in the necessary hackery.
> 
> Not sure how the ports/ version of tinderbox would handle this though.
> 
> To solve your current problem, just manually add:
> 
> 	# REQUIRE: postgresql
> 
> somewhere at the top of rc.d/tinderd, and everything will sort itself  
> out.

I've just added both to the REQUIRE line.  Even though no provider may
exist, tinderd will still start.  And, if the provider does exist, the
proper order will be obeyed.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20080914/7d1ba738/attachment.bin>


More information about the tinderbox-list mailing list