Kevin Veen-Birkenbach 1082caddae
refactor(sys-ctl-alm-compose, sys-timer-cln-bkps):
- update alarm compose unit to run email/telegram notifiers independently via multiple ExecStart lines
- ensure cleanup backup dependencies are included before timer setup with handler flush
conversation: https://chatgpt.com/share/68a43429-c0cc-800f-9cc9-9a5ae258dc50
2025-08-19 10:22:38 +02:00

11 lines
280 B
Django/Jinja

[Unit]
Description={{ SOFTWARE_NAME }} - Alarm Notifier for %i
[Service]
Type=oneshot
{% for alarm_service in [ SYS_SERVICE_ON_FAILURE_EMAIL, SYS_SERVICE_ON_FAILURE_TELEGRAM ] %}
ExecStart=/usr/bin/systemctl start {{ alarm_service }}
{% endfor %}
User=root
Group=systemd-journal