From 969a354415bdf5d6dd8e4cfe95997f2aeee0cd24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Sat, 21 Oct 2023 11:15:48 +0200 Subject: [PATCH] fix: make sure timer starts running after installation and use more intuitive time units --- .../local/lib/systemd/system/chmod_chown_sftp_uploads.timer.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/usr/local/lib/systemd/system/chmod_chown_sftp_uploads.timer.j2 b/templates/usr/local/lib/systemd/system/chmod_chown_sftp_uploads.timer.j2 index 4c7ac42..59e2b47 100644 --- a/templates/usr/local/lib/systemd/system/chmod_chown_sftp_uploads.timer.j2 +++ b/templates/usr/local/lib/systemd/system/chmod_chown_sftp_uploads.timer.j2 @@ -2,7 +2,8 @@ Description=timer: set correct permissions for SIPs that were uploaded via SFTP [Timer] -OnUnitActiveSec=300 +OnActiveSec=5min +OnBootSec=1min #When activated, it triggers the service immediately if it missed the last start time, for example due to the system being powered off Persistent=true #Unit to activate when the timer elapses. (default is set to the same name as the timer unit, except for the suffix) -- GitLab