homeserver/roles/mgrote.zfs_sanoid/templates/syncoid_mail.service.j2
mg 0bb877a9a9 neuer Backup-Server (syncoid) (#543)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #543
2023-07-05 11:47:57 +02:00

9 lines
244 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Send a Mail in case of an error in sanoid.service.
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/bin/systemctl status syncoid.service | mail -s "[ERROR] syncoid - %H" {{ empfaenger_mail }}'