20 lines
686 B
SYSTEMD
20 lines
686 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Retain and deliver coulomb-social backup failure notification for %i
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
User=root
|
||
|
|
UMask=0077
|
||
|
|
StateDirectory=coulomb-social-backup-alerts
|
||
|
|
StateDirectoryMode=0700
|
||
|
|
EnvironmentFile=/etc/coulomb-social-backup/alerting.env
|
||
|
|
ExecStart=/usr/bin/python3 /opt/coulomb-social-backup/notify-backup-alert.py --execute --failed-unit %i --state-dir /var/lib/coulomb-social-backup-alerts --hub-base ${STATE_HUB_BASE} --alertmanager-base ${ALERTMANAGER_BASE}
|
||
|
|
TimeoutStartSec=5min
|
||
|
|
NoNewPrivileges=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ReadWritePaths=/var/lib/coulomb-social-backup-alerts
|
||
|
|
ProtectHome=true
|