]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdcheck: when mdcheck_start is enabled, enable mdcheck_continue too.
authorNeilBrown <neilb@suse.de>
Tue, 29 Oct 2019 23:32:41 +0000 (10:32 +1100)
committerJes Sorensen <jsorensen@fb.com>
Tue, 12 Nov 2019 20:36:27 +0000 (15:36 -0500)
mdcheck_continue continues a regular array scan that was started by
mdcheck_start.
mdcheck_start will ensure that mdcheck_continue is active.
Howver if you reboot after a check has started, but before it finishes,
then mdcheck_continue won't cause it to continue, because nothing
starts it on boot.

So add an install option for mdcheck_contine, and make sure it
gets enabled when mdcheck_start is enabled.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
systemd/mdcheck_continue.timer
systemd/mdcheck_start.timer

index 3ccfd7858a3f4356f3e3716e2db4ea8dae656646..dba1074c1f44895c0e933c6c478754237c1e9569 100644 (file)
@@ -11,3 +11,5 @@ Description=MD array scrubbing - continuation
 [Timer]
 OnCalendar= 1:05:00
 
+[Install]
+WantedBy= mdmonitor.service
index 64807362d649b8762bdf924e0c34f627f2461ba5..9e7e02ab7333ef92198a9d9d73171e2ddc158d63 100644 (file)
@@ -13,3 +13,4 @@ OnCalendar=Sun *-*-1..7 1:00:00
 
 [Install]
 WantedBy= mdmonitor.service
+Also= mdcheck_continue.timer