]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdcheck: add systemd unit files to run mdcheck.
authorNeilBrown <neilb@suse.com>
Wed, 5 Dec 2018 05:35:00 +0000 (16:35 +1100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 6 Dec 2018 12:44:18 +0000 (07:44 -0500)
commit4199d3c629c14866505923d19fa50017ee92d2e1
treee552776a92a353291ec99e576ce7fb5e955e3b5a
parentcd72f9d114da206baa01fd56ff2d8ffcc08f3239
mdcheck: add systemd unit files to run mdcheck.

Having the mdcheck script is not use if is never run.
This patch adds systemd unit files so that it can easily
be run on the first Sunday of each month for 6 hours,
then on every subsequent morning until the check is
finished.

The units still need to be enabled with
  systemctl enable mdcheck_start.timer

The timer will only actually be started when an array
which might need it becomes active.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Makefile
systemd/mdcheck_continue.service [new file with mode: 0644]
systemd/mdcheck_continue.timer [new file with mode: 0644]
systemd/mdcheck_start.service [new file with mode: 0644]
systemd/mdcheck_start.timer [new file with mode: 0644]