From 84451f124721b215e9e2ac6a950a8b18602cea63 Mon Sep 17 00:00:00 2001 From: netops Date: Thu, 4 Sep 2025 02:36:31 +0000 Subject: [PATCH] Fix ai-processor.service file content --- infrastructure/systemd/ai-processor.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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