aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2019-10-30 10:32:41 +1100
committerJes Sorensen <jsorensen@fb.com>2019-11-12 15:36:27 -0500
commit6636788aaf4ec0cacaefb6e77592e4a68e70a957 (patch)
tree03823cba7c935c79cf024bab007eca88430c9612
parent1a1ced1e2e64a6b4b349a3fb559f6b39e4cf7103 (diff)
downloadmdadm-6636788aaf4ec0cacaefb6e77592e4a68e70a957.tar.gz
mdcheck: when mdcheck_start is enabled, enable mdcheck_continue too.
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>
-rw-r--r--systemd/mdcheck_continue.timer2
-rw-r--r--systemd/mdcheck_start.timer1
2 files changed, 3 insertions, 0 deletions
diff --git a/systemd/mdcheck_continue.timer b/systemd/mdcheck_continue.timer
index 3ccfd785..dba1074c 100644
--- a/systemd/mdcheck_continue.timer
+++ b/systemd/mdcheck_continue.timer
@@ -11,3 +11,5 @@ Description=MD array scrubbing - continuation
[Timer]
OnCalendar= 1:05:00
+[Install]
+WantedBy= mdmonitor.service
diff --git a/systemd/mdcheck_start.timer b/systemd/mdcheck_start.timer
index 64807362..9e7e02ab 100644
--- a/systemd/mdcheck_start.timer
+++ b/systemd/mdcheck_start.timer
@@ -13,3 +13,4 @@ OnCalendar=Sun *-*-1..7 1:00:00
[Install]
WantedBy= mdmonitor.service
+Also= mdcheck_continue.timer