Fix ai-processor.service file content
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user