ids.alfacom.it/deployment/systemd/ids-ml-training.service
marco370 b88377e2d5 Adapt ML model to new database schema and automate training
Adjusts SQL queries and feature extraction to accommodate changes in the network_logs database schema, enabling automatic weekly retraining of the ML hybrid detector.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: f4fdd53b-f433-44d9-9f0f-63616a9eeec1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/2lUhxO2
2025-11-24 18:14:43 +00:00

31 lines
620 B
Desktop File

[Unit]
Description=IDS ML Hybrid Detector Training
Documentation=https://github.com/your-repo/ids
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=oneshot
User=root
WorkingDirectory=/opt/ids/python_ml
# Carica environment file per credenziali database
EnvironmentFile=/opt/ids/.env
# Esegui training
ExecStart=/opt/ids/deployment/run_ml_training.sh
# Timeout generoso (training può richiedere fino a 30 min)
TimeoutStartSec=1800
# Log
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ids-ml-training
# Restart policy
Restart=no
[Install]
WantedBy=multi-user.target