Files
project-lyra/deploy/lyra-dream.service
T
serversdown 3bf18605db fix(deploy): bound service stop so restarts can't hang
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>
2026-06-18 17:34:56 +00:00

17 lines
411 B
Desktop File

[Unit]
Description=Lyra dream cycle — unattended consolidation + reflection loop
Documentation=https://github.com/serversdown/project-lyra
[Service]
Type=simple
WorkingDirectory=/home/serversdown/project-lyra
UnsetEnvironment=VIRTUAL_ENV
ExecStart=/home/serversdown/.local/bin/uv run lyra-dream --loop 1800
Restart=on-failure
RestartSec=30
TimeoutStopSec=10
KillMode=mixed
[Install]
WantedBy=default.target