railiance-platform/deploy/mas-backup/mas-evidence-freshness.service
codex edd8687ea6
All checks were successful
CCR intake gate / gate (push) Successful in 2m14s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Alert platform-root when the MAS evidence backup fails or goes stale.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 4541@bnt-lap001
Assistant-Session: 2099b3aa-d7d9-49a9-ab4e-fa8b7d0e39e8
2026-11-03 09:14:46 +01:00

17 lines
619 B
Desktop File

[Unit]
Description=Check MAS evidence archive age (stale after 26h) and local ciphertext hash
OnFailure=mas-evidence-alert@%n.service
[Service]
Type=oneshot
User=root
UMask=0077
ExecStart=/opt/railiance-platform/backup-venv/bin/python /opt/railiance-platform/mas-backup/mas_evidence_backup.py freshness
# Replay any notice still pending after a hub outage. Never fails the check.
ExecStartPost=-/usr/bin/python3 /opt/railiance-platform/mas-backup/mas_evidence_notify.py
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
StateDirectory=mas-evidence-backup/notifications
StateDirectoryMode=0700