Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit f6f3769

Browse files
authored
Merge pull request #354 from rabbitmq/extract_sd_notify
Remove systemd_notify_socket
2 parents f91b973 + 77a9126 commit f6f3769

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/rabbit_env.erl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ get_context_after_reloading_env(Context) ->
115115
fun nodename_type/1,
116116
fun nodename/1,
117117
fun split_nodename/1,
118-
fun systemd_notify_socket/1,
119118
fun maybe_setup_dist_for_remote_query/1,
120119
fun dbg_config/1,
121120
fun main_config_file/1,
@@ -1147,21 +1146,6 @@ erlang_dist_tcp_port(#{amqp_tcp_port := AmqpTcpPort} = Context) ->
11471146
end
11481147
end.
11491148

1150-
%% -------------------------------------------------------------------
1151-
%%
1152-
%% NOTIFY_SOCKET [Linux only]
1153-
%% Default: unset
1154-
1155-
systemd_notify_socket(Context) ->
1156-
case get_env_var("NOTIFY_SOCKET") of
1157-
false ->
1158-
update_context(Context,
1159-
systemd_notify_socket, undefined, default);
1160-
Socket ->
1161-
update_context(Context,
1162-
systemd_notify_socket, Socket, environment)
1163-
end.
1164-
11651149
%% -------------------------------------------------------------------
11661150
%%
11671151
%% SYS_PREFIX [Unix only]

test/rabbit_env_SUITE.erl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ check_default_values(_) ->
177177
plugins_path => default,
178178
quorum_queue_dir => default,
179179
rabbitmq_home => default,
180-
systemd_notify_socket => default,
181180
upgrade_log_file => default
182181
},
183182

@@ -218,7 +217,6 @@ check_default_values(_) ->
218217
rabbitmq_home => maps:get(rabbitmq_home, UnixContext),
219218
split_nodename => rabbit_nodes_common:parts(Node),
220219
sys_prefix => "",
221-
systemd_notify_socket => undefined,
222220
upgrade_log_file =>
223221
"/var/log/rabbitmq/" ++ NodeS ++ "_upgrade.log",
224222

@@ -262,7 +260,6 @@ check_default_values(_) ->
262260
rabbitmq_base => "%APPDATA%/RabbitMQ",
263261
rabbitmq_home => maps:get(rabbitmq_home, Win32Context),
264262
split_nodename => rabbit_nodes_common:parts(Node),
265-
systemd_notify_socket => undefined,
266263
upgrade_log_file =>
267264
"%APPDATA%/RabbitMQ/log/" ++ NodeS ++ "_upgrade.log",
268265

@@ -377,7 +374,6 @@ check_values_from_reachable_remote_node(Config) ->
377374
plugins_path => remote_node,
378375
quorum_queue_dir => default,
379376
rabbitmq_home => default,
380-
systemd_notify_socket => default,
381377
upgrade_log_file => default
382378
},
383379

@@ -416,7 +412,6 @@ check_values_from_reachable_remote_node(Config) ->
416412
rabbitmq_home => maps:get(rabbitmq_home, UnixContext),
417413
split_nodename => rabbit_nodes_common:parts(Node),
418414
sys_prefix => "",
419-
systemd_notify_socket => undefined,
420415
upgrade_log_file =>
421416
"/var/log/rabbitmq/" ++ NodeS ++ "_upgrade.log",
422417

@@ -488,7 +483,6 @@ check_values_from_offline_remote_node(_) ->
488483
plugins_path => default,
489484
quorum_queue_dir => default,
490485
rabbitmq_home => default,
491-
systemd_notify_socket => default,
492486
upgrade_log_file => default
493487
},
494488

@@ -527,7 +521,6 @@ check_values_from_offline_remote_node(_) ->
527521
rabbitmq_home => maps:get(rabbitmq_home, UnixContext),
528522
split_nodename => rabbit_nodes_common:parts(Node),
529523
sys_prefix => "",
530-
systemd_notify_socket => undefined,
531524
upgrade_log_file =>
532525
"/var/log/rabbitmq/" ++ NodeS ++ "_upgrade.log",
533526

0 commit comments

Comments
 (0)