Skip to content

Commit

Permalink
Remove more apache stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 11, 2024
1 parent 3325901 commit c805c1c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 4.5/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ tailpid=0
replicationpid=0

stopServices() {
service apache2 stop
service postgresql stop
# Check if the replication process is active
if [ $replicationpid -ne 0 ]; then
echo "Shutting down replication process"
kill $replicationpid
fi
kill $tailpid
# Force exit code 0 to signal a succesfull shutdown to Docker
# Force exit code 0 to signal a succesful shutdown to Docker
exit 0
}
trap stopServices SIGTERM TERM INT
Expand Down Expand Up @@ -60,7 +59,7 @@ if [ "$REPLICATION_URL" != "" ] && [ "$FREEZE" != "true" ]; then
fi

# fork a process and wait for it
tail -Fv /var/log/postgresql/postgresql-16-main.log /var/log/apache2/access.log /var/log/apache2/error.log /var/log/replication.log &
tail -Fv /var/log/postgresql/postgresql-16-main.log &
tailpid=${!}

export NOMINATIM_QUERY_TIMEOUT=600
Expand All @@ -78,4 +77,4 @@ echo "Warming finished"

echo "--> Nominatim is ready to accept requests"

gunicorn --bind :8000 -b unix:/run/nominatim.sock -w 4 -k uvicorn.workers.UvicornWorker nominatim_api.server.falcon.server:run_wsgi
gunicorn --bind :8080 -b unix:/run/nominatim.sock -w 4 -k uvicorn.workers.UvicornWorker nominatim_api.server.falcon.server:run_wsgi

0 comments on commit c805c1c

Please sign in to comment.