mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
daemon start/stop: add warning about missing configuration
repmgr will attempt to construct appropriate commands to start and stop repmgrd, but usually it's preferable for them to be explicitly defined, particularly if repmgr is installed from packages.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
<para>
|
||||
&repmgr; 4.3 is a major release.
|
||||
</para>
|
||||
|
||||
<sect2>
|
||||
<title>repmgr enhancements</title>
|
||||
<para>
|
||||
@@ -130,9 +131,7 @@
|
||||
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</sect>2
|
||||
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
||||
@@ -433,6 +433,14 @@ do_daemon_start(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* repmgr will attempt to construct appropriate commands, but
|
||||
* usually it's preferable for them to be explicitly defined,
|
||||
* particularly if repmgr is installed from packages.
|
||||
*/
|
||||
log_warning(_("\"repmgrd_service_start_command\" is not set"));
|
||||
log_hint(_("specify appropriate repmgrd start and stop commands in \"repmgr.conf\" for reliable operation"));
|
||||
|
||||
make_repmgrd_path(&repmgrd_command);
|
||||
}
|
||||
|
||||
@@ -513,6 +521,9 @@ void do_daemon_stop(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
log_warning(_("\"repmgrd_service_stop_command\" is not set"));
|
||||
log_hint(_("specify appropriate repmgrd start and stop commands in \"repmgr.conf\" for reliable operation"));
|
||||
|
||||
/* PID not known - attempt to retrieve repmgrd default PID */
|
||||
if (pid == UNKNOWN_PID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user