Skip to content

Commit f8adbe9

Browse files
Rename rabbit.vhost_restart_strategy options
1 parent 7132664 commit f8adbe9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ define PROJECT_ENV
118118
{proxy_protocol, false},
119119
{disk_monitor_failure_retries, 10},
120120
{disk_monitor_failure_retry_interval, 120000},
121-
%% can be stop_rabbit or give_up see rabbitmq-server-1458
122-
{vhost_restart_strategy, stop_rabbit}
121+
%% either "stop_node" or "ignore"
122+
{vhost_restart_strategy, stop_node}
123123
]
124124
endef
125125

src/rabbit_vhost_sup_sup.erl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ start_link() ->
4343
supervisor2:start_link({local, ?MODULE}, ?MODULE, []).
4444

4545
init([]) ->
46-
VhostRestart = case application:get_env(rabbit, vhost_restart_strategy, stop_rabbit) of
47-
give_up -> transient;
48-
stop_rabbit -> permanent
46+
VhostRestart = case application:get_env(rabbit, vhost_restart_strategy, stop_node) of
47+
ignore -> transient;
48+
stop_node -> permanent;
49+
transient -> transient;
50+
permanent -> permanent
4951
end,
5052

5153
ets:new(?MODULE, [named_table, public, {keypos, #vhost_sup.vhost}]),

0 commit comments

Comments
 (0)