homeserver/roles/mgrote.zfs_sanoid/templates/syncoid_mail.service.j2
Michael Grote 3f83b3870b syncoid: send mail on success (#567)
Reviewed-on: #567
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-08-04 17:33:42 +02:00

8 lines
261 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 20| mail -s "syncoid - %H" {{ empfaenger_mail }}'