[Unit]
Description=IDS Public Lists Fetcher Service
Documentation=https://github.com/yourorg/ids
After=network.target postgresql.service

[Service]
Type=oneshot
User=root
WorkingDirectory=/opt/ids/python_ml
Environment="PYTHONUNBUFFERED=1"
EnvironmentFile=/opt/ids/.env

# Run list fetcher with virtual environment
ExecStart=/opt/ids/python_ml/venv/bin/python3 /opt/ids/python_ml/list_fetcher/run_fetcher.py

# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ids-list-fetcher

# Security settings
PrivateTmp=true
NoNewPrivileges=true

# Restart policy
Restart=no

[Install]
WantedBy=multi-user.target
