logo       

Re: upgrade of supervisors child specifications: msg#00395

lang.erlang.general

Subject: Re: upgrade of supervisors child specifications


> Date: Fri, 25 Apr 2003 22:11:15 +0200 (CEST)
> To: eleberg@xxxxxxxxxxxxxxx
> Cc: erlang-questions@xxxxxxxxxx
> Subject: Re: upgrade of supervisors child specifications
> From: Martin Bjorklund <mbj@xxxxxxxxxxxx>
> Mime-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-OriginalArrivalTime: 25 Apr 2003 20:11:17.0453 (UTC)
FILETIME=[D465FFD0:01C30B66]
>
> Bengt Kleberg <eleberg@xxxxxxxxxxxxxxx> wrote:
> > greetings,
> >
> > how do i change (when doing an upgrade) the contents of a supervisors
> > child specifications?
>
> [...]
>
> > it is fine to just point me to the right place in the documentation.
>
> If you're using the release_handler and release upgrade scripts, it is
> indeed possible. See chapter 4.7.1.9 of the SASL User's guide
> (http://www.erlang.org/doc/r9b/lib/sasl-1.9.4/doc/html/part_frame.html).
> The code_change function in the supervisor will be called from the
> relup interpreter.
>

thank you.


>
> In your case, I think you'll have to first terminate the old child,
> then update the supervisor (i.e. load the code and tell it to switch
> to the new code), then start the new child.

i am not allowed to terminate the old child.
will this make it more difficult? :-)


bengt




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise