stabilize zinit #7

Closed
opened 2026-01-25 10:11:50 +00:00 by despiegk · 2 comments
Owner

there seems to be lots of issues from livecycle managemt in tui on zinit,
need to double check

we can do many more tests, fix issues

be careful not to change too much

requirements

  • test lots of zinit usecases
  • check TUI for start/stop/kill... all of these and see it works properly
  • check rhai wrappers
  • chech zinit-server is stable
  • check we can run it as pid1 for vm,...
there seems to be lots of issues from livecycle managemt in tui on zinit, need to double check we can do many more tests, fix issues be careful not to change too much ## requirements - [ ] test lots of zinit usecases - [ ] check TUI for start/stop/kill... all of these and see it works properly - [ ] check rhai wrappers - [ ] chech zinit-server is stable - [ ] check we can run it as pid1 for vm,...
Author
Owner
[service]
name = "embedderd"
exec = "/Volumes/RUST/code4/hero_embedder/target/debug/embedderd --port 3752 --host 127.0.0.1"
dir = "/Users/despiegk"
oneshot = false
status = "start"
class = "user"
critical = false
ports = [3752]
kill_others = true
process_filters = ["embedderd"]

[service.env]
PATH = "/Users/despiegk/.local/bin:/Users/despiegk/.local/bin:/Users/despiegk/.local/bin:/Users/despiegk/.opencode/bin:/Users/despiegk/.nvm/versions/node/v22.21.1/bin:/Users/despiegk/Library/pnpm:/Users/despiegk/.wasmer/bin:/Users/despiegk/.local/bin:/Users/despiegk/Library/Application Support/waveterm/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Users/despiegk/.cargo/bin:/Users/despiegk/.foundry/bin:/Users/despiegk/.orbstack/bin:/Users/despiegk/hero/go/bin:/Users/despiegk/hero/bin:/Users/despiegk/hero/bin:/Users/despiegk/.bun/bin:/Users/despiegk/.config/v-analyzer/bin:/Users/despiegk/.ops/bin:/Users/despiegk/Library/pnpm:/Users/despiegk/.codeium/windsurf/bin:/Users/despiegk/.lmstudio/bin:/Users/despiegk/.rd/bin:/Users/despiegk/hero/bin:/Users/despiegk/hero/go/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/postgresql@15/bin:/opt/homebrew/opt/postgresql@17/binase:in:/Users/despiegk/hero/bin"
HOME = "/Users/despiegk"
TMPDIR = "/var/folders/c1/m7s3rsy512b7yf46z05hbcy80000gn/T/"
ORT_DYLIB_PATH = "/opt/homebrew/opt/onnxruntime/lib/libonnxruntime.dylib"
USER = "despiegk"
LANG = "en_US.UTF-8"

[dependencies]
after = []
requires = []
wants = []
conflicts = []

[lifecycle]
restart = "on-failure"
restart_delay_ms = 5000
restart_delay_max_ms = 300000
max_restarts = 10
stability_period_ms = 30000
start_timeout_ms = 30000
stop_timeout_ms = 10000
stop_signal = "SIGTERM"

[health]
type = "http"
target = "http://127.0.0.1:3752/rpc"
expect_status = 200
interval_ms = 10000
timeout_ms = 5000
retries = 3
start_period_ms = 0

[logging]
buffer_lines = 1000

do good checks for the kill_others feature
this makes sure especially for development env's we can remove services we don't need when e.g. testing

```toml [service] name = "embedderd" exec = "/Volumes/RUST/code4/hero_embedder/target/debug/embedderd --port 3752 --host 127.0.0.1" dir = "/Users/despiegk" oneshot = false status = "start" class = "user" critical = false ports = [3752] kill_others = true process_filters = ["embedderd"] [service.env] PATH = "/Users/despiegk/.local/bin:/Users/despiegk/.local/bin:/Users/despiegk/.local/bin:/Users/despiegk/.opencode/bin:/Users/despiegk/.nvm/versions/node/v22.21.1/bin:/Users/despiegk/Library/pnpm:/Users/despiegk/.wasmer/bin:/Users/despiegk/.local/bin:/Users/despiegk/Library/Application Support/waveterm/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Users/despiegk/.cargo/bin:/Users/despiegk/.foundry/bin:/Users/despiegk/.orbstack/bin:/Users/despiegk/hero/go/bin:/Users/despiegk/hero/bin:/Users/despiegk/hero/bin:/Users/despiegk/.bun/bin:/Users/despiegk/.config/v-analyzer/bin:/Users/despiegk/.ops/bin:/Users/despiegk/Library/pnpm:/Users/despiegk/.codeium/windsurf/bin:/Users/despiegk/.lmstudio/bin:/Users/despiegk/.rd/bin:/Users/despiegk/hero/bin:/Users/despiegk/hero/go/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/postgresql@15/bin:/opt/homebrew/opt/postgresql@17/binase:in:/Users/despiegk/hero/bin" HOME = "/Users/despiegk" TMPDIR = "/var/folders/c1/m7s3rsy512b7yf46z05hbcy80000gn/T/" ORT_DYLIB_PATH = "/opt/homebrew/opt/onnxruntime/lib/libonnxruntime.dylib" USER = "despiegk" LANG = "en_US.UTF-8" [dependencies] after = [] requires = [] wants = [] conflicts = [] [lifecycle] restart = "on-failure" restart_delay_ms = 5000 restart_delay_max_ms = 300000 max_restarts = 10 stability_period_ms = 30000 start_timeout_ms = 30000 stop_timeout_ms = 10000 stop_signal = "SIGTERM" [health] type = "http" target = "http://127.0.0.1:3752/rpc" expect_status = 200 interval_ms = 10000 timeout_ms = 5000 retries = 3 start_period_ms = 0 [logging] buffer_lines = 1000 ``` do good checks for the kill_others feature this makes sure especially for development env's we can remove services we don't need when e.g. testing
Owner

03b0f96c8a
also
#8

  • safer pid1 (no panics all fork/execs are guarded)
  • sighandling and propagation properly fixed
  • race conditions in stopping/spawning are all fixed
  • autom mount filesystems is done
  • circular deps fixed
  • updated the openrpc.json with missing defs
  • tests for bash, rhai, tui are added
  • updated docs in docs/user

everything passes.
and mos boots

https://forge.ourworld.tf/geomind_code/zinit/commit/03b0f96c8aeba9fa30531e5317d10704d8dab544 also https://forge.ourworld.tf/geomind_code/zinit/pulls/8 - safer pid1 (no panics all fork/execs are guarded) - sighandling and propagation properly fixed - race conditions in stopping/spawning are all fixed - autom mount filesystems is done - circular deps fixed - updated the openrpc.json with missing defs - tests for bash, rhai, tui are added - updated docs in docs/user everything passes. and mos boots
Sign in to join this conversation.
No labels
No milestone
No assignees
2 participants
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
geomind_code/zinit#7
No description provided.