homeserver/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2

9 lines
313 B
Text
Raw Normal View History

2024-10-28 18:17:23 +01:00
{{ file_header | default () }}
[Unit]
2024-10-28 18:27:43 +01:00
Description=Send a Mail for rsync_mirror service after error or success rsync_mirror.service.
2024-10-28 18:17:23 +01:00
[Service]
Type=oneshot
2024-10-28 18:34:25 +01:00
ExecStart=/bin/bash -c '/usr/bin/journalctl -u rsync_mirror.service -n 30 | mail -aFROM:{{ rsync_mirror_user }}@mgrote.net -s "syncoid - %H" {{ my_mail }}'