29 lines
1.1 KiB
Desktop File
29 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Backup Failure Notification for %i
|
|
Documentation=file:///var/home/lilith/Code/@projects/@lilith/lilith-platform/deployments/scripts/lilith-backup-notify.sh
|
|
# This is a systemd template unit. It is instantiated automatically via
|
|
# OnFailure=lilith-backup-notify-failure@%n.service in each backup service.
|
|
# %i is the name of the failed unit (e.g. lilith-backup-postgres.service).
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
|
|
# Pass the failed unit name as the first argument
|
|
ExecStart=/var/home/lilith/Code/@projects/@lilith/lilith-platform/deployments/scripts/lilith-backup-notify.sh %i
|
|
|
|
# Webhook URL — set in /etc/systemd/system/lilith-backup-notify-failure@.service.d/override.conf
|
|
# or via: systemctl edit lilith-backup-notify-failure@.service
|
|
# [Service]
|
|
# Environment="BACKUP_NOTIFY_WEBHOOK=https://hooks.example.com/notify"
|
|
EnvironmentFile=-/var/home/lilith/.config/lilith/backup-notify.env
|
|
|
|
# Run as platform user
|
|
User=lilith
|
|
|
|
# Short timeout — notification must not block indefinitely
|
|
TimeoutStartSec=60
|
|
|
|
# Capture to journal
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=lilith-backup-notify
|