daemon (start|stop): verify that repmgrd starts/stops.

Note this may not always be possible for "daemon stop" if we are unable
to determine the repmgrd PID.
This commit is contained in:
Ian Barwick
2019-01-30 14:36:52 +09:00
parent 70e4243a1d
commit d7420d7274
8 changed files with 249 additions and 19 deletions

View File

@@ -2298,7 +2298,7 @@ do_standby_follow(void)
NULL);
}
if (PQstatus(follow_target_conn) == CONNECTION_OK || runtime_options.wait == false)
if (PQstatus(follow_target_conn) == CONNECTION_OK || runtime_options.wait_provided == false)
{
break;
}
@@ -2317,7 +2317,7 @@ do_standby_follow(void)
log_error(_("unable to connect to target node %i"), follow_target_node_id);
}
if (runtime_options.wait == true)
if (runtime_options.wait_provided == true)
{
if (follow_target_node_id == UNKNOWN_NODE_ID)
{