Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 6559c1d

Browse files
author
Dmitriy "DK" Korobskiy
committed
* ETL script for Neo4j
** Fixes
1 parent f5d1ae2 commit 6559c1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Neo4j/neo4j_load.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ set -x
7272

7373
echo "Waiting for the service to become active ..."
7474
declare -i time_limit_s=30
75-
while ! systemctl is-active neo4j >/dev/null; do
75+
# Ping Neo4j. Even if a service is active it might not be responding yet.
76+
while ! cypher-shell "CALL dbms.components()" 2>/dev/null; do
7677
if ((time_limit_s-- == 0)); then
7778
echo "ERROR: Neo4j failed to start." >&2
7879
exit 2

0 commit comments

Comments
 (0)