aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch.appup
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-02-12 12:42:50 +0100
committerLoïc Hoguin <[email protected]>2020-02-21 11:19:37 +0100
commit19696a7e5b4e35f97f5ae73af09942cad6726831 (patch)
tree2e33ec147bd0a094fb08dc42487acf7f9ebde945 /src/ranch.appup
parent4b80e31bc48a7fd8552ee34f59de26c790b19ceb (diff)
downloadranch-19696a7e5b4e35f97f5ae73af09942cad6726831.tar.gz
ranch-19696a7e5b4e35f97f5ae73af09942cad6726831.tar.bz2
ranch-19696a7e5b4e35f97f5ae73af09942cad6726831.zip
Stop/restart acceptors during the upgrade process
Diffstat (limited to 'src/ranch.appup')
-rw-r--r--src/ranch.appup8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ranch.appup b/src/ranch.appup
index 0041e01..dcb47f0 100644
--- a/src/ranch.appup
+++ b/src/ranch.appup
@@ -3,6 +3,7 @@
{"2.0.0-rc.2",
[{<<"2\\.0\\.[0-9]+.*">>, [
+ {apply, {ranch, stop_all_acceptors, []}},
{load_module, ranch},
{load_module, ranch_acceptor},
{update, ranch_acceptors_sup, supervisor},
@@ -19,9 +20,11 @@
{load_module, ranch_ssl},
{update, ranch_sup, supervisor},
{load_module, ranch_tcp},
- {load_module, ranch_transport}
+ {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},
@@ -38,6 +41,7 @@
{load_module, ranch_ssl},
{update, ranch_sup, supervisor},
{load_module, ranch_tcp},
- {load_module, ranch_transport}
+ {load_module, ranch_transport},
+ {apply, {ranch, restart_all_acceptors, []}}
]}]
}.