upgrade of supervisors child specifications
Fri Apr 25 22:11:15 CEST 2003
Bengt Kleberg <eleberg@REDACTED> wrote:
> 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 220.127.116.11 of the SASL User's guide
The code_change function in the supervisor will be called from the
If you don't use the release_handler, you can "roll your own" by
calling the functions in sys(3). (you might want to look at the relup
interpreter in release_handler_1.erl for inspiration)
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.
More information about the erlang-questions