]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/nominatim.cron.erb
Avoid exception iterating a non-existent directory
[chef.git] / cookbooks / nominatim / templates / default / nominatim.cron.erb
index 0cedfa360b718cc619e393490a62141d0ef447c8..5ae8f3ad6fcc94a2824d38e151713b878de343d9 100644 (file)
@@ -2,11 +2,12 @@
 
 MAILTO=<%= @mailto %>
 
-* * * * * lonvia <%= @bin_directory %>/cron_ipanalyse.py /var/log/apache2/nominatim.openstreetmap.org-access.log
+* * * * * lonvia <%= @bin_directory %>/cron_ipanalyse.py <%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log
 <% if node[:nominatim][:enable_backup] -%>
 00 3 1 * * nominatim /usr/local/bin/backup-nominatim
 <% end -%>
-30 1 * * * postgres /usr/local/bin/vacuum-db-nominatim
+20 0 * * * postgres /usr/local/bin/vacuum-db-nominatim
 <% if node[:nominatim][:state] == "master" -%>
 05 */4 * * * postgres /usr/local/bin/clean-db-nominatim
 <% end -%>
+18 1 * * * nominatim touch <%= @update_maintenance_trigger %>