From 53cb609c5b15266e85b95276e20a406b126b6024 Mon Sep 17 00:00:00 2001 From: Rob Court Date: Fri, 27 Sep 2024 15:29:54 +0100 Subject: [PATCH] follow log --- loadKB.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/loadKB.sh b/loadKB.sh index 7f8c01d..272433d 100644 --- a/loadKB.sh +++ b/loadKB.sh @@ -22,9 +22,9 @@ chmod -R 777 /import || : chmod -R 777 /var/lib/neo4j/plugins || : #Output the query log to docker log: -tail -f /var/lib/neo4j/logs/query.log >/proc/1/fd/1 & -tail -f /var/lib/neo4j/logs/debug.log >/proc/1/fd/1 & -tail -f /var/lib/neo4j/logs/security.log >/proc/1/fd/1 & +tail --follow=name --retry /var/lib/neo4j/logs/query.log >/proc/1/fd/1 & +tail --follow=name --retry /var/lib/neo4j/logs/debug.log >/proc/1/fd/1 & +tail --follow=name --retry /var/lib/neo4j/logs/security.log >/proc/1/fd/1 & sleep 4m && cypher-shell -u neo4j -p ${NEO4J_AUTH/neo4j\//} -d system 'START DATABASE neo4j' exec /docker-entrypoint.sh neo4j