From: Sarah Hoffmann Date: Wed, 3 Nov 2021 08:16:29 +0000 (+0100) Subject: nominatim: force maintenance job to run at UTC time X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/1785b1f64e60348ff21fbfdb84bb8311c5bbd24c nominatim: force maintenance job to run at UTC time --- diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 2e23f2949..36389d896 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -290,7 +290,7 @@ if node[:nominatim][:state] == "off" action :delete end - cron_d "nominatim-update-maintenance-trigger" do + systemd_timer "nominatim-update-maintenance-trigger" do action :delete end else @@ -321,12 +321,16 @@ else mailto email_errors end - cron_d "nominatim-update-maintenance-trigger" do - minute "18" - hour "1" + systemd_service "nominatim-update-maintenance-trigger" do + description "Trigger maintenance tasks for Nominatim DB" + exec_start "touch #{basedir}/status/update_maintenance" user "nominatim" - command "touch #{basedir}/status/update_maintenance" - mailto email_errors + end + + systemd_timer "nominatim-update-maintenance-trigger" do + action :create + description "Schedule maintenance tasks for Nominatim DB" + on_calender "*-*-* 02:03:00 UTC" end end