- When waiting for startup, pg_ctl repeatedly
- attempts to connect to the server.
- When waiting for shutdown, pg_ctl waits for
- the server to remove its
PID file.
+ When waiting, pg_ctl repeatedly checks the
+ server's
PID file, sleeping for a short amount
+ of time between checks. Startup is considered complete when
+ the
PID file indicates that the server is ready to
+ accept connections. Shutdown is considered complete when the server
pg_ctl returns an exit code based on the
success of the startup or shutdown.