ids.alfacom.it/deployment/systemd/ids-cleanup.timer
marco370 e3dedf00f1 Automate removal of old blocked IPs and update timer
Fix bug where auto-unblock incorrectly removed all records for an IP, and correct systemd timer to run once hourly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ae7d80ee-d080-4e32-b4a2-b23e876e3650
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/L6QSDnx
2025-11-25 10:42:52 +00:00

18 lines
440 B
SYSTEMD

[Unit]
Description=IDS Cleanup Detections Timer
Documentation=https://github.com/yourusername/ids
Requires=ids-cleanup.service
[Timer]
# Esegui ogni ora al minuto 10 (es. 00:10, 01:10, 02:10, ..., 23:10)
OnCalendar=*:10:00
# Esegui subito se il sistema era spento durante l'esecuzione programmata
Persistent=true
# Randomizza esecuzione di ±5 minuti per evitare picchi di carico
RandomizedDelaySec=300
[Install]
WantedBy=timers.target