summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut2017-05-01 16:10:17 +0000
committerPeter Eisentraut2017-07-05 17:37:08 +0000
commit1bac5f552a25aca3aa2ef1d404f7cdf7788c34d8 (patch)
tree5ddec3336e872013219fbd4b204cf04a2377d270 /doc/src
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/src')
-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 71e52c4c35..12fa011c4e 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>