]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
systemd: start mdcheck_continue.timer before mdcheck_start.timer
authorMartin Wilck <mwilck@suse.com>
Wed, 13 Aug 2025 20:12:53 +0000 (22:12 +0200)
committerXiaoNi87 <xni@redhat.com>
Thu, 28 Aug 2025 07:49:34 +0000 (15:49 +0800)
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 <mwilck@suse.com>
systemd/mdcheck_continue.timer
systemd/mdcheck_start.timer

index dba1074c1f44895c0e933c6c478754237c1e9569..0ab5d2ebecb525ebcb51179843457fba87ded392 100644 (file)
@@ -9,7 +9,7 @@
 Description=MD array scrubbing - continuation
 
 [Timer]
-OnCalendar= 1:05:00
+OnCalendar= 1:00:00
 
 [Install]
 WantedBy= mdmonitor.service
index 9e7e02ab7333ef92198a9d9d73171e2ddc158d63..1b8f3f20878be06f1a8313fa5182c47a93a1d150 100644 (file)
@@ -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