send email on zfs scrub failure
This commit is contained in:
parent
8d2142b259
commit
978844a9de
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user