[erlang-questions] Supervisor behaviour query

Dana.RUBINO@REDACTED Dana.RUBINO@REDACTED
Wed Nov 12 16:10:01 CET 2008


Ignore this one list - my start_link on the worker wasn't returning {ok, Pid} to the supervisor.

Problem solved.

Thanks,
Dan

________________________________
From: RUBINO, Dana, GBM
Sent: 12 November 2008 15:03
To: 'erlang-questions@REDACTED'
Subject: Supervisor behaviour query

Hi all,

I have setup a supervisor structure as such:

Supervisor (Node A)  -> Supervisor (Node B) -> WorkerA
                                                                -> WorkerB
                                                                -> WorkerC

I boot my app and the supervision tree starts all the processes and I can see the dependency tree when I fire up appmon as expected.

When however I kill a worker via appmon the supervisor does not attempt to restart the killed process.

Am I missing something? Does a supervisor not attempt to restart a process which has been killed purposely? (I am using one_for_one)

Thanks,
Dan



***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***********************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081112/7c9aedfa/attachment.htm>


More information about the erlang-questions mailing list