From d923bc7e248e1889178a6d9f39727f0ed0c3dd5b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 15 Sep 2025 19:05:11 -0400 Subject: [PATCH] use monotonic timer for session ticket key rotation It makes more sense to rotate session ticket keys every 8 hours instead of doing it at 3 specific times each day where the initial rotation will happen earlier than necessary. It makes little difference due to keeping the previous 3 session tickets valid but is cleaner. --- etc/systemd/system/rotate-session-ticket-keys.timer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/systemd/system/rotate-session-ticket-keys.timer b/etc/systemd/system/rotate-session-ticket-keys.timer index c857270..456c7e0 100644 --- a/etc/systemd/system/rotate-session-ticket-keys.timer +++ b/etc/systemd/system/rotate-session-ticket-keys.timer @@ -1,8 +1,11 @@ [Unit] Description=Run rotate-session-ticket-keys three times daily +After=create-session-ticket-keys.service +Requires=create-session-ticket-keys.service [Timer] -OnCalendar=0/8:00:00 +OnActiveSec=8h +OnUnitActiveSec=8h [Install] WantedBy=timers.target