From af1508c4a729098bc1545358e09878d4946c789d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 6 Sep 2021 17:18:16 +0200 Subject: Add appup instructions for 2.1.0 --- src/ranch.appup | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/ranch.appup b/src/ranch.appup index 8357065..04f2d2c 100644 --- a/src/ranch.appup +++ b/src/ranch.appup @@ -9,6 +9,53 @@ %% module then call system_code_change; and when downgrading, %% call system_code_change and then load the module. +{"2.1.0", + [{<<"2\\.0\\.[0-9]+.*">>, [ + {apply, {ranch, stop_all_acceptors, []}}, + {load_module, ranch}, + {load_module, ranch_acceptor}, + {update, ranch_acceptors_sup, supervisor}, + {load_module, ranch_app}, + {update, ranch_server, {advanced, []}}, + {update, ranch_conns_sup_sup, supervisor}, + %% See comments at the top of the file about ranch_conns_sup. + {update, ranch_conns_sup, {advanced, []}}, + {load_module, ranch_crc32c}, + {update, ranch_embedded_sup, supervisor}, + {update, ranch_listener_sup, supervisor}, + {load_module, ranch_protocol}, + {load_module, ranch_proxy_header}, + {update, ranch_server_proxy, {advanced, []}}, + {load_module, ranch_ssl}, + {update, ranch_sup, supervisor}, + {load_module, ranch_tcp}, + {load_module, ranch_transport}, + {apply, {ranch, restart_all_acceptors, []}} + ]}], + [{<<"2\\.0\\.[0-9]+.*">>, [ + {apply, {ranch, stop_all_acceptors, []}}, + {load_module, ranch}, + {load_module, ranch_acceptor}, + {update, ranch_acceptors_sup, supervisor}, + {load_module, ranch_app}, + %% See comments at the top of the file about ranch_conns_sup. + {update, ranch_conns_sup, {advanced, []}}, + {update, ranch_conns_sup_sup, supervisor}, + {load_module, ranch_crc32c}, + {update, ranch_embedded_sup, supervisor}, + {update, ranch_listener_sup, supervisor}, + {load_module, ranch_protocol}, + {load_module, ranch_proxy_header}, + {update, ranch_server, {advanced, []}}, + {update, ranch_server_proxy, {advanced, []}}, + {load_module, ranch_ssl}, + {update, ranch_sup, supervisor}, + {load_module, ranch_tcp}, + {load_module, ranch_transport}, + {apply, {ranch, restart_all_acceptors, []}} + ]}] +}. + {"2.0.0", [{<<"2\\.0\\.[0-9]+.*">>, [ {apply, {ranch, stop_all_acceptors, []}}, -- cgit v1.2.3