From: Martin Wilck Date: Wed, 13 Aug 2025 20:12:53 +0000 (+0200) Subject: systemd: start mdcheck_continue.timer before mdcheck_start.timer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa4ea95db3525c2d381ddf65da69ab549c814d4;p=thirdparty%2Fmdadm.git systemd: start mdcheck_continue.timer before mdcheck_start.timer In the (unlikely but possible) case that a previously started md check hasn't finished on the first Sunday of the following month, mdcheck_start.service will start the scan from position 0, which is probably not desired. Have mdcheck_continue.service start first, so that it will pick up the check where it left off, and that the subsequent mdcheck_start.service will do nothing. Signed-off-by: Martin Wilck --- diff --git a/systemd/mdcheck_continue.timer b/systemd/mdcheck_continue.timer index dba1074c..0ab5d2eb 100644 --- a/systemd/mdcheck_continue.timer +++ b/systemd/mdcheck_continue.timer @@ -9,7 +9,7 @@ Description=MD array scrubbing - continuation [Timer] -OnCalendar= 1:05:00 +OnCalendar= 1:00:00 [Install] WantedBy= mdmonitor.service diff --git a/systemd/mdcheck_start.timer b/systemd/mdcheck_start.timer index 9e7e02ab..1b8f3f20 100644 --- a/systemd/mdcheck_start.timer +++ b/systemd/mdcheck_start.timer @@ -9,7 +9,7 @@ Description=MD array scrubbing [Timer] -OnCalendar=Sun *-*-1..7 1:00:00 +OnCalendar=Sun *-*-1..7 1:05:00 [Install] WantedBy= mdmonitor.service