ids.alfacom.it/deployment/systemd/ids-syslog-parser.service
marco370 921dd81563 Improve system service reliability and monitoring details
Update systemd service files to ensure continuous operation with automatic restarts, add a timestamp for improved debugging of analytics aggregation, and introduce a new installation script for streamlined deployment.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 2c579454-c420-40e4-a574-a341fb962b69
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/0sf5i4S
2025-11-24 11:02:23 +00:00

33 lines
727 B
Desktop File

[Unit]
Description=IDS Syslog Parser (Network Logs Processor)
After=network.target postgresql-16.service rsyslog.service
Wants=postgresql-16.service
[Service]
Type=simple
User=ids
Group=ids
WorkingDirectory=/opt/ids/python_ml
EnvironmentFile=/opt/ids/.env
# Comando esecuzione (usa virtual environment)
ExecStart=/opt/ids/python_ml/venv/bin/python3 syslog_parser.py
# Restart automatico sempre (non solo on-failure)
Restart=always
RestartSec=10
StartLimitInterval=300
StartLimitBurst=5
# Limiti risorse
LimitNOFILE=65536
MemoryMax=1G
# Logging
StandardOutput=append:/var/log/ids/syslog_parser.log
StandardError=append:/var/log/ids/syslog_parser.log
SyslogIdentifier=ids-syslog-parser
[Install]
WantedBy=multi-user.target