diff --git a/infrastructure/systemd/ai-processor.service b/infrastructure/systemd/ai-processor.service index e69de29..4ec8350 100644 --- a/infrastructure/systemd/ai-processor.service +++ b/infrastructure/systemd/ai-processor.service @@ -0,0 +1,20 @@ +[Unit] +Description=AI Processor for Network Analysis +After=network.target ollama.service +Wants=ollama.service + +[Service] +Type=simple +User=netops +Group=netops +WorkingDirectory=/home/netops/ai-processor +Environment="PATH=/home/netops/ai-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +Environment="PYTHONUNBUFFERED=1" +ExecStart=/home/netops/ai-env/bin/python /home/netops/ai-processor/ai_processor.py +Restart=on-failure +RestartSec=30 +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target