From 25ee4e39da4aca107dd6a3566e4eb65ef0622e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99i=C5=A1ka?= Date: Sun, 24 Dec 2017 14:39:04 +0100 Subject: [PATCH] Update run_zabbix_component.sh This should solve #178 --- server-pgsql/ubuntu/run_zabbix_component.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-pgsql/ubuntu/run_zabbix_component.sh b/server-pgsql/ubuntu/run_zabbix_component.sh index 73c4a03fb..4faa378da 100755 --- a/server-pgsql/ubuntu/run_zabbix_component.sh +++ b/server-pgsql/ubuntu/run_zabbix_component.sh @@ -216,7 +216,7 @@ check_db_connect_postgresql() { WAIT_TIMEOUT=5 - while [ ! "$(psql -h ${DB_SERVER_HOST} -p ${DB_SERVER_PORT} -U ${DB_SERVER_ROOT_USER} -l -q 2>/dev/null)" ]; do + while [ ! "$(psql -h ${DB_SERVER_HOST} -p ${DB_SERVER_PORT} -U ${DB_SERVER_ROOT_USER} -d ${DB_SERVER_DBNAME} -l -q 2>/dev/null)" ]; do echo "**** PostgreSQL server is not available. Waiting $WAIT_TIMEOUT seconds..." sleep $WAIT_TIMEOUT done