diff options
author | Siri Hansen <[email protected]> | 2014-02-20 16:02:36 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2014-02-20 16:02:36 +0100 |
commit | 0f8fb8de22d4af6e9dc8ba8c6a574351e824cb6b (patch) | |
tree | 4e277c31ace3626659059e93500a5131a608e45a /lib/sasl/src | |
parent | 8fcf49c05ca364fb2167940118e21fe54d395d52 (diff) | |
parent | 3cdd158193146c95c1480d6d11ff4cc277649c24 (diff) | |
download | otp-0f8fb8de22d4af6e9dc8ba8c6a574351e824cb6b.tar.gz otp-0f8fb8de22d4af6e9dc8ba8c6a574351e824cb6b.tar.bz2 otp-0f8fb8de22d4af6e9dc8ba8c6a574351e824cb6b.zip |
Merge branch 'siri/restart_app-type/OTP-11716'
* siri/restart_app-type/OTP-11716:
[sasl] Use restart type from .rel when restarting apps during upgrade
Diffstat (limited to 'lib/sasl/src')
-rw-r--r-- | lib/sasl/src/systools_rc.erl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/sasl/src/systools_rc.erl b/lib/sasl/src/systools_rc.erl index 54c327410d..76f753c3d0 100644 --- a/lib/sasl/src/systools_rc.erl +++ b/lib/sasl/src/systools_rc.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2013. All Rights Reserved. +%% Copyright Ericsson AB 1996-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -365,14 +365,22 @@ translate_application_instrs(Script, Appls, PreAppls) -> case lists:keysearch(Appl, #application.name, Appls) of {value, PostApplication} -> PostMods = PostApplication#application.modules, + Type = PostApplication#application.type, + Apply = + case Type of + none -> []; + load -> [{apply, {application, load, + [Appl]}}]; + _ -> [{apply, {application, start, + [Appl, Type]}}] + end, [{apply, {application, stop, [Appl]}}] ++ [{remove, {M, brutal_purge, brutal_purge}} || M <- PreMods] ++ [{purge, PreMods}] ++ [{add_module, M, []} || M <- PostMods] ++ - [{apply, {application, start, - [Appl, permanent]}}]; + Apply; false -> throw({error, {no_such_application, Appl}}) end; |