supervisor

Lennart Öhman lennart.ohman@REDACTED
Tue Nov 26 23:52:00 CET 2002


Don't be angry with the supervisor, he is your friend :-)

You like all supervisors to be one_for_all recovery set and have all your
processes
to be permanent (to make any termination considered illegal). And if you like
it to stop at the first fault you need to set restart intensity to
0 restarts over any time.

But to get it all to shutdown, If I don't recall incorrectly,
you must set the permanence of the *applications* to permanent
too in order to make any EXIT-cause be considered illegal.
I think they are transient by default.

/Lennart


Klacke wrote:
> 
> I never made friends with the supervisor module.
> I want a restart strategy so that when any one of the
> children in the application dies, the node is brought down
> and possibly restarted by heart.
> 
> Can I do that?
> 
> --
> Claes Wikstrom                        -- Caps lock is nowhere and
> Alteon WebSystems                     -- everything is under control
> http://www.bluetail.com/~klacke
> cellphone: +46 70 2097763

-- 
-------------------------------------------------------------
Lennart Ohman                   phone   : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 6735
Sehlstedtsgatan 6               fax     : +46-8-667 8230
SE-115 28 STOCKHOLM, SWEDEN     email   : lennart.ohman@REDACTED



More information about the erlang-questions mailing list