[mythtv] Possibility of adding a watchdog?

Isaac Richards ijr at po.cwru.edu
Thu Aug 28 21:57:34 EDT 2003


On Thursday 28 August 2003 08:48 pm, Michael J. Pedersen wrote:
> On Thu, Aug 28, 2003 at 05:52:10PM -0400, Isaac Richards wrote:
> > > I'm still having crashing issues, and I was wondering if there would be
> > > any arguments against having a 3rd process started  to act as a
> > > watchdog.. basically, it would query the mythbackend via it's tcp ctrl
> > > ports to verify that it's up and restart it if it's not responding. 
> > > The same would apply to mythfrontend, but we'll need to add support for
> > > it to listen to a tcp socket and respond.
> > > Any thoughs/objections?
> >
> > Yes.  It's always better to fix the source of the bug, and not bandaid
> > it. Since you can't get gdb working on your distribution, I'd suggest
> > switching to another distro.
>
> Isaac, I've got to chime in on this one. Having such a watchdog function
> would be VERY good, for one simple reason: If MythTV crashes at 2pm, and
> I don't get home until 6pm, I've lost any recordings that would have
> occurred during that time window. Having a watchdog which would restart
> the backend would be an excellent idea, so that I don't lose said
> recordings.

If you're that worried about it, put it in a shell script with a while (1) 
loop.  No need for a watchdog daemon.

Isaac


More information about the mythtv-dev mailing list