3bf18605db
systemctl restart was hanging indefinitely: lyra-web's long-lived SSE log streams block uvicorn's graceful shutdown forever. Add TimeoutStopSec=10 + KillMode=mixed to both units so stop is bounded (SIGTERM, then SIGKILL the cgroup) and restart always completes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
319 B
Desktop File
16 lines
319 B
Desktop File
[Unit]
|
|
Description=Lyra web chat server (FastAPI + vendored UI)
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/home/serversdown/project-lyra
|
|
UnsetEnvironment=VIRTUAL_ENV
|
|
ExecStart=/home/serversdown/.local/bin/uv run lyra-web
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=10
|
|
KillMode=mixed
|
|
|
|
[Install]
|
|
WantedBy=default.target
|