postgresql: init script: wait till server has started
authorFloris Bos <bos@je-eigen-domein.nl>
Mon, 25 May 2015 17:20:26 +0000 (19:20 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 11 Jul 2015 07:27:38 +0000 (09:27 +0200)
commite7d515d00e5d36e1260da3768178d2364db1ef90
tree9697e3f91a1a7ecd59957f31ecd3b6c35b7feaf8
parentbc16d5444fbb0f2a303e2a4a950ee286e5338056
postgresql: init script: wait till server has started

Adds "-w" option to init script to wait till the database server
has fully started and accepts connections before continuing.

Prevents other applications that depend on PostgreSQL from
failing to start, if the database server is not ready yet.
Times out after 60 seconds by default.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/postgresql/S50postgresql