We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f5ec0 commit ecf286eCopy full SHA for ecf286e
scripts/stopNeo4j.sh
@@ -50,8 +50,8 @@ else
50
fi
51
52
# Check if there are still processes running that listen to the Neo4j HTTP port
53
-port_listener_process_id=$( lsof -t -i:"${NEO4J_HTTP_PORT}" -sTCP:LISTEN )
54
-if echo -n "${port_listener_process_id}" | grep -q ".*"; then
+port_listener_process_id=$( lsof -t -i:"${NEO4J_HTTP_PORT}" -sTCP:LISTEN || true )
+if [ -n "${port_listener_process_id}" ]; then
55
echo "stopNeo4j: Terminating the following process that still listens to port ${NEO4J_HTTP_PORT}"
56
ps -p "${port_listener_process_id}"
57
# Terminate the process that is listening to the Neo4j HTTP port
0 commit comments