From a8c6339bfcb65d8c68d7d1f1c835675f0f0b07d7 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 16 Jul 2018 09:33:08 +0200 Subject: [PATCH] Increase timeout of service start wait --- mariadb/etc/init.d/mariadb | 2 +- postgres/etc/init.d/postgres | 2 +- rabbitmq/etc/init.d/rabbitmq | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mariadb/etc/init.d/mariadb b/mariadb/etc/init.d/mariadb index f3d58d9..5ae6607 100755 --- a/mariadb/etc/init.d/mariadb +++ b/mariadb/etc/init.d/mariadb @@ -16,7 +16,7 @@ start() { } start_post() { - timeout -t 3 docker exec mariadb sh -c 'until [ -e /run/mysqld/mysqld.sock ]; do usleep 50000; done' + timeout -t 60 docker exec mariadb sh -c 'until [ -e /run/mysqld/mysqld.sock ]; do usleep 50000; done' } stop() { diff --git a/postgres/etc/init.d/postgres b/postgres/etc/init.d/postgres index 2d8dcc3..a017c75 100755 --- a/postgres/etc/init.d/postgres +++ b/postgres/etc/init.d/postgres @@ -15,7 +15,7 @@ start() { } start_post() { - timeout -t 3 docker exec postgres sh -c 'until [ -e /var/run/postgresql/.s.PGSQL.5432 ]; do usleep 50000; done' + timeout -t 60 docker exec postgres sh -c 'until [ -e /var/run/postgresql/.s.PGSQL.5432 ]; do usleep 50000; done' } stop() { diff --git a/rabbitmq/etc/init.d/rabbitmq b/rabbitmq/etc/init.d/rabbitmq index 2e26eb7..2e54e58 100755 --- a/rabbitmq/etc/init.d/rabbitmq +++ b/rabbitmq/etc/init.d/rabbitmq @@ -15,7 +15,7 @@ start() { } start_post() { - timeout -t 3 docker exec rabbitmq sh -c 'until grep -q "Server startup complete" /var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null ; do usleep 50000; done' + timeout -t 60 docker exec rabbitmq sh -c 'until grep -q "Server startup complete" /var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null ; do usleep 50000; done' } stop() {