aafb80fa31
Background scan every 5 min opens rule:host_silence and notifies without waiting for the next ingest event. CLI job + optional systemd timer. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
447 B
Desktop File
17 lines
447 B
Desktop File
[Unit]
|
|
Description=Security Alert Center host silence scan (stale heartbeat)
|
|
After=network-online.target postgresql.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=sac
|
|
Group=sac
|
|
WorkingDirectory=/opt/security-alert-center/backend
|
|
EnvironmentFile=/opt/security-alert-center/config/sac-api.env
|
|
ExecStart=/opt/security-alert-center/backend/.venv/bin/python -m app.jobs.host_silence_scan
|
|
Nice=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|