X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4670fb28130f0c5f6371ddc4932bf856725ee589..027e6c6a30ad50302390f6ea56d3bbf7a49f4fdf:/cookbooks/nominatim/templates/default/nominatim.cron.erb diff --git a/cookbooks/nominatim/templates/default/nominatim.cron.erb b/cookbooks/nominatim/templates/default/nominatim.cron.erb index 0cedfa360..5ae8f3ad6 100644 --- a/cookbooks/nominatim/templates/default/nominatim.cron.erb +++ b/cookbooks/nominatim/templates/default/nominatim.cron.erb @@ -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 %>