]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: add system timer to run --oneshot periodically
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:57 +0000 (07:44 -0500)
commit7cd7e91ab3de5aa75dc963cb08b0618c1885cf0d
tree37c28cf3ea4df97f6809c06418aaee9be95ee975
parent4199d3c629c14866505923d19fa50017ee92d2e1
Monitor: add system timer to run --oneshot periodically

"mdadm --monitor --oneshot" can be used to get a warning
if there are any degraded arrays.  It can be helpful to get
this warning periodically while the condition persists.

This patch add a systemd service and timer which can
be enabled with
   systemctl enable mdmonitor-oneshot.service

and will then provide daily warnings.

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