ids.alfacom.it/deployment/systemd/ids-cleanup.timer
marco370 791b7caa4d Add automatic cleanup for old detections and IP blocks
Implement automated detection cleanup after 48 hours and IP unblocking after 2 hours using systemd timers and Python scripts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 3809a8a0-8dd5-4b5a-9e32-9e075dab335e
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:40:44 +00:00

19 lines
458 B
SYSTEMD

[Unit]
Description=IDS Cleanup Detections Timer
Documentation=https://github.com/yourusername/ids
Requires=ids-cleanup.service
[Timer]
# Esegui ogni ora, 10 minuti dopo l'ora (es. 10:10, 11:10, 12:10...)
OnCalendar=hourly
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