diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2017-05-08 18:28:37 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2017-05-08 18:28:37 +0300 |
| commit | f8adbe976485f5fa7846a8fef711d95caad97f94 (patch) | |
| tree | c7a09c12631d79b278e1500895fabd011e05120e /src | |
| parent | 7132664520b09cf6e15dc95e91ce73eedd4407e4 (diff) | |
| download | rabbitmq-server-git-f8adbe976485f5fa7846a8fef711d95caad97f94.tar.gz | |
Rename rabbit.vhost_restart_strategy options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_vhost_sup_sup.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_vhost_sup_sup.erl b/src/rabbit_vhost_sup_sup.erl index 44744c4bda..e528d64e0e 100644 --- a/src/rabbit_vhost_sup_sup.erl +++ b/src/rabbit_vhost_sup_sup.erl @@ -43,9 +43,11 @@ start_link() -> supervisor2:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> - VhostRestart = case application:get_env(rabbit, vhost_restart_strategy, stop_rabbit) of - give_up -> transient; - stop_rabbit -> permanent + VhostRestart = case application:get_env(rabbit, vhost_restart_strategy, stop_node) of + ignore -> transient; + stop_node -> permanent; + transient -> transient; + permanent -> permanent end, ets:new(?MODULE, [named_table, public, {keypos, #vhost_sup.vhost}]), |
