mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
repmgrd: log receipt of SIGINT/SIGTERM
This commit is contained in:
@@ -43,10 +43,12 @@ handle_sigint_bdr(SIGNAL_ARGS)
|
|||||||
initPQExpBuffer(&event_details);
|
initPQExpBuffer(&event_details);
|
||||||
|
|
||||||
appendPQExpBuffer(&event_details,
|
appendPQExpBuffer(&event_details,
|
||||||
"%s signal received",
|
_("%s signal received"),
|
||||||
postgres_signal_arg == SIGTERM
|
postgres_signal_arg == SIGTERM
|
||||||
? "TERM" : "INT");
|
? "TERM" : "INT");
|
||||||
|
|
||||||
|
log_notice("%s", event_details.data);
|
||||||
|
|
||||||
create_event_notification(local_conn,
|
create_event_notification(local_conn,
|
||||||
&config_file_options,
|
&config_file_options,
|
||||||
config_file_options.node_id,
|
config_file_options.node_id,
|
||||||
|
|||||||
@@ -99,10 +99,12 @@ handle_sigint_physical(SIGNAL_ARGS)
|
|||||||
initPQExpBuffer(&event_details);
|
initPQExpBuffer(&event_details);
|
||||||
|
|
||||||
appendPQExpBuffer(&event_details,
|
appendPQExpBuffer(&event_details,
|
||||||
"%s signal received",
|
_("%s signal received"),
|
||||||
postgres_signal_arg == SIGTERM
|
postgres_signal_arg == SIGTERM
|
||||||
? "TERM" : "INT");
|
? "TERM" : "INT");
|
||||||
|
|
||||||
|
log_notice("%s", event_details.data);
|
||||||
|
|
||||||
if (local_node_info.type == PRIMARY)
|
if (local_node_info.type == PRIMARY)
|
||||||
writeable_conn = local_conn;
|
writeable_conn = local_conn;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user