self start #10

Closed
opened 2026-03-21 03:49:50 +00:00 by despiegk · 1 comment
Owner

first check /code_manage_development_branch

then make sure that we have $servicename_ui and $servicename
the last one is the cli which uses the $servicename_sdk

check all carrefully and fix what needs to be fixed

check /hero_proc_service_selfstart
and that we cleanly start in makefile

first check /code_manage_development_branch then make sure that we have $servicename_ui and $servicename the last one is the cli which uses the $servicename_sdk check all carrefully and fix what needs to be fixed check /hero_proc_service_selfstart and that we cleanly start in makefile
Author
Owner

Implementation Complete

Implemented hero_proc_service_selfstart pattern and clean Makefile start.

Changes

hero_indexer_server — added --start / --stop flags with full selfstart:

  • self_start(): registers action + service with hero_proc, attaches openrpc_socket health check, polls until healthy
  • self_stop(): stops service via hero_proc, polls until halted
  • wait_for_healthy / wait_for_halted helpers

hero_indexer_ui — same --start / --stop selfstart pattern

hero_indexer (new CLI binary) — command-line client using hero_indexer_sdk:

  • hero_indexer health — check server health
  • hero_indexer ping — ping server
  • hero_indexer db list/create/delete/info — database operations
  • hero_indexer search <db> <query> — full-text search
  • hero_indexer doc add <db> <json> — add a document

Makefile — clean start targets:

  • make run / make start — starts both server + UI via --start
  • make run-server / make run-ui — individual service start
  • make stop — stops both UI then server via --stop
  • make logs / make logs-ui — lifecycle log streaming

Commit

68395836839583

## Implementation Complete Implemented `hero_proc_service_selfstart` pattern and clean Makefile start. ### Changes **`hero_indexer_server`** — added `--start` / `--stop` flags with full selfstart: - `self_start()`: registers action + service with hero_proc, attaches openrpc_socket health check, polls until healthy - `self_stop()`: stops service via hero_proc, polls until halted - `wait_for_healthy` / `wait_for_halted` helpers **`hero_indexer_ui`** — same `--start` / `--stop` selfstart pattern **`hero_indexer`** (new CLI binary) — command-line client using `hero_indexer_sdk`: - `hero_indexer health` — check server health - `hero_indexer ping` — ping server - `hero_indexer db list/create/delete/info` — database operations - `hero_indexer search <db> <query>` — full-text search - `hero_indexer doc add <db> <json>` — add a document **Makefile** — clean start targets: - `make run` / `make start` — starts both server + UI via `--start` - `make run-server` / `make run-ui` — individual service start - `make stop` — stops both UI then server via `--stop` - `make logs` / `make logs-ui` — lifecycle log streaming ### Commit `6839583` — https://forge.ourworld.tf/lhumina_code/hero_indexer/commit/6839583
Sign in to join this conversation.
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_indexer#10
No description provided.