homeserver/roles/mgrote_zfs_sanoid/templates/syncoid_mail.service.j2
Michael Grote dc88f9cce0
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
syncoid: fix mail output
2024-05-02 07:28:31 +02:00

8 lines
254 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=Send a Mail for sanoid service after error or success sanoid.service.
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/usr/bin/journalctl -u syncoid.service -n 30 | mail -s "syncoid - %H" {{ my_mail }}'