2023-07-05 11:47:57 +02:00
|
|
|
{{ file_header | default () }}
|
|
|
|
|
|
|
|
[Unit]
|
2023-08-04 17:33:42 +02:00
|
|
|
Description=Send a Mail for sanoid service after error or success sanoid.service.
|
2023-07-05 11:47:57 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2023-08-04 17:33:42 +02:00
|
|
|
ExecStart=/bin/bash -c '/usr/bin/journalctl -u syncoid.service -n 20| mail -s "syncoid - %H" {{ empfaenger_mail }}'
|