Skip to content

Commit

Permalink
Try running in daemon mode
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 12, 2024
1 parent 17676ea commit c7e46ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 4.5/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ stopServices() {
kill $replicationpid
fi
kill $tailpid
pkill gunicorn

echo `cat $GUNICORN_PID_FILE`
echo
cat $GUNICORN_PID_FILE | sudo xargs kill

# Force exit code 0 to signal a successful shutdown to Docker
exit 0
}
Expand Down Expand Up @@ -85,5 +87,8 @@ sudo -u nominatim gunicorn \
--bind :8080 \
--pid $GUNICORN_PID_FILE \
--workers 4 \
--daemon \
--worker-class uvicorn.workers.UvicornWorker \
nominatim_api.server.falcon.server:run_wsgi

wait

0 comments on commit c7e46ed

Please sign in to comment.