mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
- 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
11 lines
280 B
Django/Jinja
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
|