Files
aipackage/specs/001-enterprise-experience/contracts/systemd/cezen-api.service
T

34 lines
901 B
Desktop File

[Unit]
Description=Nexus One AI Management API
Wants=network-online.target
Requires=ollama.service chromadb.service
After=network-online.target ollama.service chromadb.service
StartLimitIntervalSec=120
StartLimitBurst=3
[Service]
Type=simple
User=cezen
Group=cezen
WorkingDirectory=/opt/cezen/backend
Environment=CEZEN_DATA=/opt/cezen/data
Environment=OLLAMA_URL=http://127.0.0.1:11434
Environment=CHROMA_URL=http://127.0.0.1:8100
Environment=PATH=/opt/cezen/backend/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
ExecStart=/opt/cezen/backend/venv/bin/uvicorn main:app --host 127.0.0.1 --port 8080 --workers 2
Restart=on-failure
RestartSec=5
TimeoutStartSec=120
TimeoutStopSec=30
KillSignal=SIGTERM
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/cezen/data
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target