[Unit] Description=Cortex / Inara LLM Gateway After=network.target [Service] Type=simple User=scott WorkingDirectory=/home/scott/agents_sync/projects/Cortex_and_Inara_dev/cortex ExecStart=/home/scott/agents_sync/projects/Cortex_and_Inara_dev/cortex/.venv/bin/uvicorn main:app --host 0.0.0.0 --port 8000 Restart=on-failure RestartSec=5 # Pass through the user's environment so API keys in ~/.env or shell env are available EnvironmentFile=-/home/scott/agents_sync/projects/Cortex_and_Inara_dev/cortex/.env # Give LLM subprocesses time to finish before force-kill TimeoutStopSec=15 [Install] WantedBy=multi-user.target