homeserver/roles/mgrote_cv4pve_autosnap/templates/cv4pve_mail.service.j2
Michael Grote 8ab23df606
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline failed
ff
2024-04-14 20:54:34 +02:00

7 lines
233 B
Django/Jinja

{{ 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 -s "[ERROR] cv4pve - %H" {{ my_mail }}'