summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-05-01 12:10:17 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-07-05 13:37:08 -0400
commit1bac5f552a25aca3aa2ef1d404f7cdf7788c34d8 (patch)
tree5ddec3336e872013219fbd4b204cf04a2377d270 /doc
parentd80e73f2293429cf8a0a13c243852379ec2e37e2 (diff)
pg_ctl: Make failure to complete operation a nonzero exit
If an operation being waited for does not complete within the timeout, then exit with a nonzero exit status. This was previously handled inconsistently.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/sgml/ref/pg_ctl-ref.sgml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml
index 71e52c4c355..12fa011c4e5 100644
--- a/doc/src/sgml/ref/pg_ctl-ref.sgml
+++ b/doc/src/sgml/ref/pg_ctl-ref.sgml
@@ -412,6 +412,13 @@ PostgreSQL documentation
<command>pg_ctl</command> returns an exit code based on the
success of the startup or shutdown.
</para>
+
+ <para>
+ If the operation does not complete within the timeout (see
+ option <option>-t</option>), then <command>pg_ctl</command> exits with
+ a nonzero exit status. But note that the operation might continue in
+ the background and eventually succeed.
+ </para>
</listitem>
</varlistentry>