ids.alfacom.it/deployment/ids-analytics-aggregator.service
marco370 4155b0f01f Update script to use correct virtual environment path
Correct the path to the Python virtual environment in both the service definition and the wrapper script to ensure proper execution of the analytics aggregator.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6b4e2246-92c4-45dd-8a8f-25a7d0067f86
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/oGXAoP7
2025-11-24 08:42:51 +00:00

22 lines
473 B
Desktop File

[Unit]
Description=IDS Analytics Aggregator - Hourly Traffic Statistics
After=network.target postgresql.service
[Service]
Type=oneshot
User=ids
Group=ids
WorkingDirectory=/opt/ids/python_ml
EnvironmentFile=-/opt/ids/.env
# Execute hourly aggregation
ExecStart=/opt/ids/python_ml/venv/bin/python3 /opt/ids/python_ml/analytics_aggregator.py hourly
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ids-analytics
[Install]
WantedBy=multi-user.target