[mythtv-users] Restarting the backend from the frontend

Rossco rossco at whyza.net
Fri Nov 9 11:09:11 UTC 2007


I also found I had to call this from monit to start mythbackend

#!/bin/bash
export TERM=vt100
/etc/init.d/mythtv-backend restart

If I didn't set the TERM variable, user jobs that run nuvexport-xvid 

/usr/bin/nuvexport-xvid --nice 19 --input="%FILE%"

would fail to execute due to a perl module complaining and exiting, with
this error in the logs

TERM not set at /usr/share/nuvexport/nuv_export/shared_utils.pm line 69





On Fri, 2007-11-09 at 09:49 +0000, Stephen Robertson wrote:

> > 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
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20071109/94e368fa/attachment.htm 


More information about the mythtv-users mailing list