[mythtvnz] Mythfrontend fails to connect to database

Steve Holdoway steve at greengecko.co.nz
Fri Jul 26 06:50:00 BST 2013


On Fri, 2013-07-26 at 17:38 +1200, Nick Rout wrote:
> 
> 
> On Fri, Jul 26, 2013 at 5:35 PM, Stephen Worthington
> <stephen_agent at jsw.gen.nz> wrote:
>         On Fri, 26 Jul 2013 17:30:28 +1200, you wrote:
>         
>         >On Fri, Jul 26, 2013 at 2:02 PM, Stephen Worthington <
>         >stephen_agent at jsw.gen.nz> wrote:
>         >
>         >> On Fri, 26 Jul 2013 08:42:42 +1200, you wrote:
>         >>
>         >> >On Fri, 19 Jul 2013 13:44:48 +1200, Stephen Worthington
>         >> ><stephen_agent at jsw.gen.nz> wrote:
>         >> >
>         >> >> On Fri, 19 Jul 2013 07:58:07 +1200, you wrote:
>         >>
>         >
>         >Don't make it complicated. In ubuntu mythfrontend is a
>         wrapper script that
>         >starts the mythfrontend binary, which ubuntu rename to
>         mythfrontend.real.
>         >
>         >Put the delay in /usr/bin/mythtfrontend.
>         
>         
>         I thought of that, but if you put the delay in there, then you
>         will
>         get the delay every time you start mythfrontend, rather than
>         only at
>         system startup.
> 
> True, that would be annoying. But on a perfect system you'd never
> restart anyway :)  
> 
> Putting a delay in there would at least prove what is needed, and OP
> could move to a more sophisticated fix later?
> 
Putting in a delay is always a bodge. Why not run a test loop trying to
connect first, waiting a second after every failure. After success, move
on??

That way it won't break again in the future.

Sorry, the grumpy sysadmin speaks (:

Steve

-- 
Steve Holdoway BSc(Hons) MNZCS 
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa




More information about the mythtvnz mailing list