[mythtv-users] Restarting the backend from the frontend

Stephen Robertson stephengrobertson at gmail.com
Fri Nov 9 09:49:41 UTC 2007


> On Nov 3, 2007 1:22 AM, Rossco <rossco at whyza.net> wrote:
> >  I recently installed monit
> >
> >  it does exactly as I need after I configured it...it check for a running
> > mythtbackend process every 20 secs, and if mythtbackend crashes, monit will
> > restart it.
> >
> >  max down time 40 secs
>
> lucky, I installed monit, and as far as i can tell its configured
> properly, it just doesn't want to restart mythbackend when it
> crashes...

I had a similar problem and I will confess that I really didn't get a
handle on what script was running as what user and all that but I
seemed to have a problem with my /etc.init.d/mythbackend script.  It
worked ok when entered at a command line but monit didn't seem to like
it.  I changed the first couple of lines from

##############################################################################
#! /bin/sh

to

#! /bin/sh
##############################################################################

and it seemed to be happier.  It may be that I changed something else
at the same time that actually did fix it, but its working great now.

Stephen


More information about the mythtv-users mailing list