ts-7000
[Top] [All Lists]

Re: [ts-7000] Watchdog or Linux reboot?

To:
Subject: Re: [ts-7000] Watchdog or Linux reboot?
From: Larry <>
Date: Tue, 28 Aug 2007 05:28:56 -0400
I designed something similar to what you're suggesting and am pleased with it.
I ended up with a few other low priority things that needed to be done that werer convenient
to put into this thread as well.
What you could do is to open a socket between the main code and the watchdog thread.
Have the watchdog send a message periodically and if there is no response, say, 3 times in a row,
reset.
Also something that worked well, is I checked the task list for all essential tasks, and same thing,
allowed something to be missing only 3 times in a row.
And finally, I used it to monitor some log files that if too large would threaten the system,
and set a low and high water mark on length.
If any of the logs grows past high water mark, trim (FIFO style) back to the low water mark.


e_fenimore wrote:

Not sure if this is the best place for this question: but...here goes:

To guarantee that a program is always running, seems like a software watchdog is the best
idea. However, the watchdog shipped with the TS-7260 needs to be fed every 8 seconds.
Segmenting my program into 8 second blocks seems messy. So, I propose an alternate
approach:

I'll use a separate thread (or even independent app) to periodically check in on the main app.
If the main app doesn't check in within, say, 30 minutes, a reset can be forced. I could use
the watchdog in that separate thread so that if it died, too, it would cause a reset. This
seems like a good approach. Just wondering if anyone has anything better, or some insight
into watchdog use?


No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.9/975 - Release Date: 8/26/2007 9:34 PM
__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU