feat(services): add service_db.nu #88

Merged
mahmoud merged 1 commit from development_service_db into development 2026-04-19 20:12:34 +00:00
Owner

Adds tools/modules/services/service_db.nu for the hero_db service (server + UI) — standard install | start | stop | status lifecycle through hero_proc.

Shape mirrors service_whiteboard.nu with two narrow deviations:

  • hero_db_server kill_other covers rpc.sock, resp.sock, and TCP 6378 so hero_proc reclaims all three bind points on restart.
  • hero_db_ui script is "<bin> serve", matching hero_zero/services/hero_db.toml's exec line verbatim.

Smoke-tested end to end on Hetzner — all four endpoints (OpenRPC over UDS, UI over UDS, RESP2 over UDS, RESP2 over TCP 6378) reachable on start and after --reset, clean stop. Full summary on the sub-issue.

Closes #87
Refs #75

Adds `tools/modules/services/service_db.nu` for the `hero_db` service (server + UI) — standard `install | start | stop | status` lifecycle through hero_proc. Shape mirrors `service_whiteboard.nu` with two narrow deviations: - `hero_db_server` `kill_other` covers `rpc.sock`, `resp.sock`, and TCP `6378` so hero_proc reclaims all three bind points on restart. - `hero_db_ui` `script` is `"<bin> serve"`, matching `hero_zero/services/hero_db.toml`'s `exec` line verbatim. Smoke-tested end to end on Hetzner — all four endpoints (OpenRPC over UDS, UI over UDS, RESP2 over UDS, RESP2 over TCP 6378) reachable on start and after `--reset`, clean stop. Full summary on the sub-issue. Closes #87 Refs #75
Adds tools/modules/services/service_db.nu managing the hero_db
service lifecycle through hero_proc. Two registered actions
(hero_db_server, hero_db_ui) plus the hero_db CLI shipped alongside.

Shape mirrors service_whiteboard.nu with two narrow deviations:
- hero_db_server kill_other covers rpc.sock, resp.sock, and TCP 6378
  so hero_proc reclaims all three bind points on restart.
- hero_db_ui script is "<bin> serve", matching hero_zero/services/
  hero_db.toml verbatim.

Smoke-tested end to end on Hetzner with --root: clean install, start
with all four probes (OpenRPC over UDS, UI over UDS, RESP2 over UDS,
RESP2 over TCP 6378) passing, idempotent start, --reset reclaim,
clean stop with sockets + TCP released.

Refs: #75
Closes: #87
mahmoud merged commit 471f84c214 into development 2026-04-19 20:12:34 +00:00
mahmoud deleted branch development_service_db 2026-04-19 20:12:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_skills!88
No description provided.