<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3">
</HEAD>
<BODY>
I also found I had to call this from monit to start mythbackend<BR>
<BR>
#!/bin/bash<BR>
export TERM=vt100<BR>
/etc/init.d/mythtv-backend restart<BR>
<BR>
If I didn't set the TERM variable, user jobs that run nuvexport-xvid <BR>
<BR>
/usr/bin/nuvexport-xvid --nice 19 --input="%FILE%"<BR>
<BR>
would fail to execute due to a perl module complaining and exiting, with this error in the logs<BR>
<BR>
TERM not set at /usr/share/nuvexport/nuv_export/shared_utils.pm line 69<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Fri, 2007-11-09 at 09:49 +0000, Stephen Robertson wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">> On Nov 3, 2007 1:22 AM, Rossco <<A HREF="mailto:rossco@whyza.net">rossco@whyza.net</A>> wrote:</FONT>
<FONT COLOR="#000000">> > I recently installed monit</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > it does exactly as I need after I configured it...it check for a running</FONT>
<FONT COLOR="#000000">> > mythtbackend process every 20 secs, and if mythtbackend crashes, monit will</FONT>
<FONT COLOR="#000000">> > restart it.</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > max down time 40 secs</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> lucky, I installed monit, and as far as i can tell its configured</FONT>
<FONT COLOR="#000000">> properly, it just doesn't want to restart mythbackend when it</FONT>
<FONT COLOR="#000000">> crashes...</FONT>
<FONT COLOR="#000000">I had a similar problem and I will confess that I really didn't get a</FONT>
<FONT COLOR="#000000">handle on what script was running as what user and all that but I</FONT>
<FONT COLOR="#000000">seemed to have a problem with my /etc.init.d/mythbackend script. It</FONT>
<FONT COLOR="#000000">worked ok when entered at a command line but monit didn't seem to like</FONT>
<FONT COLOR="#000000">it. I changed the first couple of lines from</FONT>
<FONT COLOR="#000000">##############################################################################</FONT>
<FONT COLOR="#000000">#! /bin/sh</FONT>
<FONT COLOR="#000000">to</FONT>
<FONT COLOR="#000000">#! /bin/sh</FONT>
<FONT COLOR="#000000">##############################################################################</FONT>
<FONT COLOR="#000000">and it seemed to be happier. It may be that I changed something else</FONT>
<FONT COLOR="#000000">at the same time that actually did fix it, but its working great now.</FONT>
<FONT COLOR="#000000">Stephen</FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">mythtv-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>