mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user