# /etc/systemd/system/shire-brain.service
[Unit]
Description=SHIRE Brain API Server
After=network-online.target ollama.service
Wants=network-online.target ollama.service

[Service]
Type=simple
User=ray
WorkingDirectory=/home/shire3d/ARMOR
Environment=SHIRE_FAST_MODEL=shire-mini-fast:qwen3.5-4b
Environment=SHIRE_DEEP_MODEL=shire-mini-deep:qwen3.5-9b
Environment=SHIRE_BRAIN_PORT=8765
Environment=SHIRE_BRAIN_HOST=127.0.0.1
Environment=OLLAMA_URL=http://127.0.0.1:11434
ExecStart=/home/shire3d/ARMOR/venv/bin/python /home/shire3d/ARMOR/ai/brain_server.py
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
