[erlang-questions] Restarting supervision tree
Tue Jul 2 12:54:02 CEST 2013
You have to call erlang:exit(SupPid, shutdown) or erlang:exit(SupPid, kill) to restart whole supervisor tree.
On Jul 2, 2013, at 1:49 PM, Martin Dimitrov <mrtndimitrov@REDACTED> wrote:
> Thanks. I figured that supervisor:terminate_child/2 will actually not
> trigger the recovery mechanism at all.
> On 7/2/2013 1:37 PM, Jesper Louis Andersen wrote:
>> On Mon, Jul 1, 2013 at 11:13 AM, Martin Dimitrov <mrtndimitrov@REDACTED>wrote:
>>> If I call
>>> supervisor:terminate_child/2 and then supervisor:restart_child/2 on the
>>> permanent worker, will this affect the maximum restart frequency?
>> No, it will not affect the maximum restart frequency in this case. The way
>> I usually figure this out
>> is by reading the source code of the supervisror module however, and I am
>> not sure that is the best
>> way to have it documented. But at least that is one way to figure it out :P
> erlang-questions mailing list
More information about the erlang-questions