]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/cron.erb
Ignore .kitchen.local.yml
[chef.git] / cookbooks / nominatim / templates / default / cron.erb
index 1ccb365d937efee0030574c37f3d86b08b05b521..68961e54e93fe25904e660a22bc7aa6fc2819408 100644 (file)
@@ -2,8 +2,11 @@
 
 MAILTO=<%= @mailto %>
 
-30 5 * * 0 nominatim <%= @bin_directory %>/cron_logrotate.sh
 * * * * * lonvia <%= @bin_directory %>/cron_ipanalyse.py /var/log/apache2/nominatim.openstreetmap.org-access.log
-00 2 * * * nominatim <%= @bin_directory %>/cron_vacuum.sh
+<% if node[:nominatim][:enable_backup] -%>
 00 3 1 * * nominatim /usr/local/bin/backup-nominatim
-
+<% end -%>
+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 -%>