On 19/05/17 09:28, Mike Scott wrote:
> On 18/05/17 22:31, Martin Gregorie wrote:
> ....
>>> I would imagine a startup script could be inserted into teh init.d
>>> system to, after the window manager stars up launch what apps in what
>>> window arrangements are desirable
>>>
>> Yes, that would work, and you could use frequently executed cron jobs to
>> detect that some application has fallen over and restart it, emailing yo
>> an alarm if it fails more than 'n' times in a row.
>
> Am I missing something here? What's wrong with each task being wrapped
> in a trivial shell script that loops forever, eg:
>
> while true; do xterm -e ssh myhost; mail root -s 'ssh exited'
>
> or similar.
>
Hmm. You are assuming it crashes in a way that will exit back to that?
When we did watchdogs in milspec stuff it tended to be within the app,
write a number that increments every time you write it, outside the app
(under timer interrupt) if the number doesnt get updated for n seconds,
destroy the process and recreate it. (or in many cases reboot the whole
embedded system)
That takes care of 'hung' processes as well
--
“it should be clear by now to everyone that activist environmentalism
(or environmental activism) is becoming a general ideology about humans,
about their freedom, about the relationship between the individual and
the state, and about the manipulation of people under the guise of a
'noble' idea. It is not an honest pursuit of 'sustainable development,'
a matter of elementary environmental protection, or a search for
rational mechanisms designed to achieve a healthy environment. Yet
things do occur that make you shake your head and remind yourself that
you live neither in Joseph Stalin’s Communist era, nor in the Orwellian
utopia of 1984.”
Vaclav Klaus
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|