homeserver/roles/mgrote_cv4pve_autosnap/templates/cv4pve_mail.service.j2

8 lines
267 B
Text
Raw Normal View History

{{ file_header | default () }}
[Unit]
Description=Send a Mail in case of an error in cv4pve.service.
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/bin/systemctl status cv4pve.service | mail -aFROM:cv4pve-autosnap@mgrote.net -s "[ERROR] cv4pve - %H" {{ my_mail }}'