mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user