]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: reload gunicorn after updating source
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 31 Jul 2023 08:26:16 +0000 (10:26 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 31 Jul 2023 08:27:21 +0000 (10:27 +0200)
cookbooks/nominatim/templates/default/nominatim-update.erb

index 9f122206ce2cbdbdfc6767894cdb734a5aebd08b..6bff200e147c74e57f1fc057b69e5b3a6e540224 100644 (file)
@@ -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."