From: Sarah Hoffmann Date: Mon, 31 Jul 2023 08:26:16 +0000 (+0200) Subject: nominatim: reload gunicorn after updating source X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/cd61b458c9d289347eddfee79700289fc8b18080 nominatim: reload gunicorn after updating source --- diff --git a/cookbooks/nominatim/templates/default/nominatim-update.erb b/cookbooks/nominatim/templates/default/nominatim-update.erb index 9f122206c..6bff200e1 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update.erb @@ -10,6 +10,9 @@ starttime=`date +%s` if /sbin/runuser -u nominatim -- <%= @bindir %>/nominatim-update-source; then pushd <%= @builddir %> make install +<% if node[:nominatim][:api_flavour] == "python" -%> + systemctl reload nominatim +<% end -%> if ! /sbin/runuser -u nominatim -- <%= @bindir %>/nominatim-update-refresh-db; then date "+%c === Database refresh failed. Stopping updates."