]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/nominatim-update.erb
nominatim: reload gunicorn after updating source
[chef.git] / 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."