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
This commit is contained in:
2025-08-19 10:22:38 +02:00
parent 242347878d
commit 1082caddae
2 changed files with 12 additions and 8 deletions

View File

@@ -1,8 +1,10 @@
[Unit]
Description=Notifier for %i
Description={{ SOFTWARE_NAME }} - Alarm Notifier for %i
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl start {{ SYS_SERVICE_ON_FAILURE_EMAIL }} {{ SYS_SERVICE_ON_FAILURE_TELEGRAM }}
{% 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