Summary
Handle SIGINT / SIGTERM in soma-daemon so the tick loop shuts down cleanly instead of hard-exiting mid-tick.
Context
Binary: src/bin/soma_daemon.rs. Prefer signal handling that works on Linux CI and local dev; document Windows limits if any.
Implementation plan
- Install signal handlers (e.g.
ctrlc or tokio/std signal) for SIGINT/SIGTERM
- Set a shutdown flag consumed by the main loop
- Flush logs / stop cleanly; exit 0 on graceful stop
- Unit or integration test where practical (or documented manual verification)
Acceptance criteria
Relationships
- Milestone: v0.2 — Stub quality
- Binary-only; no registry redesign
Out of scope
- Kubernetes lifecycle probes
- Multi-process supervision
Summary
Handle SIGINT / SIGTERM in
soma-daemonso the tick loop shuts down cleanly instead of hard-exiting mid-tick.Context
Binary:
src/bin/soma_daemon.rs. Prefer signal handling that works on Linux CI and local dev; document Windows limits if any.Implementation plan
ctrlcortokio/std signal) for SIGINT/SIGTERMAcceptance criteria
Relationships
Out of scope