/usr/local/bin/pg_isready
pg_isready is a utility for checking the connection status of a PostgreSQL database server. The exit status specifies the result of the connection check.