X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c1d0a8f5d53831d9802830c979f0095d17a57305..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/nominatim/templates/default/cron.erb diff --git a/cookbooks/nominatim/templates/default/cron.erb b/cookbooks/nominatim/templates/default/cron.erb index 02894ffc5..68961e54e 100644 --- a/cookbooks/nominatim/templates/default/cron.erb +++ b/cookbooks/nominatim/templates/default/cron.erb @@ -6,4 +6,7 @@ MAILTO=<%= @mailto %> <% if node[:nominatim][:enable_backup] -%> 00 3 1 * * nominatim /usr/local/bin/backup-nominatim <% end -%> -30 1 * * * postgres /usr/local/bin/clean-db-nominatim +30 1 * * * postgres /usr/local/bin/vacuum-db-nominatim +<% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%> +05 */4 * * * postgres /usr/local/bin/clean-db-nominatim +<% end -%>