From 2bf6739e84b9630056b0abe9b51bf42155de0071 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 6 Feb 2025 16:20:47 +0100
Subject: [PATCH] feat: adjust maintenance end timer to match new ZIH
 maintenance window

---
 tasks/configure_maintenance.yml                                 | 1 +
 .../local/lib/systemd/system/disapp_maintenance_end.timer.j2    | 2 +-
 .../local/lib/systemd/system/subapp_maintenance_end.timer.j2    | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tasks/configure_maintenance.yml b/tasks/configure_maintenance.yml
index 90a0036..bb4ac17 100644
--- a/tasks/configure_maintenance.yml
+++ b/tasks/configure_maintenance.yml
@@ -26,6 +26,7 @@
     - "subapp_maintenance_begin.service"
     - "subapp_maintenance_begin.timer"
     - "subapp_maintenance_end.timer"
+  notify: daemon-reload
 
 - name: enable SubApp/DisApp maintenance services and timers
   ansible.builtin.systemd:
diff --git a/templates/usr/local/lib/systemd/system/disapp_maintenance_end.timer.j2 b/templates/usr/local/lib/systemd/system/disapp_maintenance_end.timer.j2
index d5286d0..494a718 100644
--- a/templates/usr/local/lib/systemd/system/disapp_maintenance_end.timer.j2
+++ b/templates/usr/local/lib/systemd/system/disapp_maintenance_end.timer.j2
@@ -4,7 +4,7 @@ Description=timer for disapp_maintenance.service
 [Timer]
 # run on the 1st Tuesday of each month
 # You can validate your calendar expressions using `systemd-analyze calendar EXPR`.
-OnCalendar=Tue *-*-01..07 12:00:00
+OnCalendar=Tue *-*-01..07 15:10:00
 Unit=disapp.service
 
 [Install]
diff --git a/templates/usr/local/lib/systemd/system/subapp_maintenance_end.timer.j2 b/templates/usr/local/lib/systemd/system/subapp_maintenance_end.timer.j2
index cc952a6..082ace9 100644
--- a/templates/usr/local/lib/systemd/system/subapp_maintenance_end.timer.j2
+++ b/templates/usr/local/lib/systemd/system/subapp_maintenance_end.timer.j2
@@ -4,7 +4,7 @@ Description=timer for subapp.service
 [Timer]
 # run on the 1st Tuesday of each month
 # You can validate your calendar expressions using `systemd-analyze calendar EXPR`.
-OnCalendar=Tue *-*-01..07 12:00:00
+OnCalendar=Tue *-*-01..07 15:10:00
 Unit=subapp.service
 
 [Install]
-- 
GitLab