send email on zfs scrub failure

This commit is contained in:
Motiejus Jakštys 2023-03-01 15:20:28 +02:00
parent 8d2142b259
commit 978844a9de

View File

@ -525,6 +525,9 @@ in {
ExecStart = ''${script} "%I" "Hostname: %H" "Machine ID: %m" "Boot ID: %b" ''; ExecStart = ''${script} "%I" "Hostname: %H" "Machine ID: %m" "Boot ID: %b" '';
}; };
}; };
zfs-scrub.unitConfig.OnFailure = "unit-status-mail@zfs-scrub.service";
} // lib.mapAttrs' (name: value: { } // lib.mapAttrs' (name: value: {
name = "borgbackup-job-${name}"; name = "borgbackup-job-${name}";
value = { value = {