<div dir="ltr">Thanks a lot for the clarification fellas, I&#39;ve got it working great now. My script is<br><br>if pidof mythbackend ; then<br>&nbsp;echo &quot;Mythbackend is running $(date +%m%d%y_%T)&quot; &gt;&gt; /home/bobby2/logs/backend.log<br>
else<br>&nbsp;echo &quot;Mythbackend wasn&#39;t running, restarted at $(date +%m%d%y_%T)&quot; &gt;&gt; /home/bobby2/logs/backend.log<br>&nbsp;/etc/rc.d/mythbackend restart<br>fi<br><br>I just added the cronjob to my /root/cron and it works great. Learn somethin&#39; new everyday! :)<br>
<br>Bob<br><br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 5:02 AM, Tino Keitel <span dir="ltr">&lt;<a href="mailto:tino.keitel@gmx.de">tino.keitel@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Aug 12, 2008 at 15:49:53 -0700, Gregory K. Ruiz-Ade wrote:<br>
&gt; On Aug 11, 2008, at 8:06 PM, Nick Rout wrote:<br>
&gt;<br>
&gt; &gt; Oh and another option is to start out of inittab with a respawn<br>
&gt; &gt; statement, but that can be hard to stop! And occasionally you do need<br>
&gt; &gt; to stop mythbackend, to reconfigure cards or something.<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m running myth on ubuntu (soon to migrate to a fresh install of<br>
&gt; MythBuntu), and I use monit (<a href="http://www.tildeslash.com/monit/" target="_blank">http://www.tildeslash.com/monit/</a>,<br>
&gt; available from ubuntu via aptitude) to check that mythbackend is<br>
<br>
</div>Doesn&#39;t Ubuntu use upstart, which comes with builtin service<br>
supervision? So why use stuff like monit then?<br>
<br>
Regards,<br>
<font color="#888888">Tino<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br></div>