repmgr: "cluster show" to return non-zero value if an issue encountered

This commit is contained in:
Ian Barwick
2018-07-05 13:32:50 +09:00
parent 4c7c681a14
commit 92d0e6809b
3 changed files with 43 additions and 1 deletions

View File

@@ -52,6 +52,35 @@
</para>
</refsect1>
<refsect1>
<title>Exit codes</title>
<para>
Following exit codes can be emitted by <command>repmgr node status</command>:
</para>
<variablelist>
<varlistentry>
<term><option>SUCCESS (0)</option></term>
<listitem>
<para>
No issues were detected.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>ERR_NODE_STATUS (25)</option></term>
<listitem>
<para>
One or more issues were detected.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>See also</title>
<para>