code wiki / (root) / nx_runsv_all.nx

nx_runsv_all.nx

buildroot/runtime/nx_runsv_all.nx

3435 B67 linesdepth 8pulls 16 transitivereach 1 importersview sourcekind tooltopic runsv
docsdependenciesstructsconstsfunctions

about

nx_runsv_all.nx -- s6-svscan for the sovereign stack: read EVERY service declared in nx_svcreg and supervise them all in one loop (foreground spawn + readiness + crash-loop backoff per service). The full payoff of the declarative registry (R5): add a row -> it gets supervised, no code change. Composes nx_runsv (rs_spawn_fg / rs_decide / hp_probe / rg) + nx_svcreg (svc_list / svc_get). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_runsv.nx nx_runsv_all.nx nx_runsv_all_gate.nx

imports: nx_runsv.nx

imported by: nx_runsv_all_gate.nx

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rsa_plan svc_list svc_list_pfx reg_index ss_get sys_mmap ss_scan svc_get svc_get_pfx reg_get reg_key reg_cat ss_get ↻ rs_spawn_fg sys_fork sys_openat_wr sys_dup3 sys_execve sys_sleep_ms sys_mmap ↻ sys_munmap sys_wait4 hp_probe sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap ↻ sys_mmap ↻ hp_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_write sys_read sys_munmap ↻ sys_close

structs

none

consts

6const RSA_MAGIC_65536: i64 = 65536
7const RSA_MAGIC_5000: i64 = 5000
9const RSA_MAX: i64 = 32

functions

12func rsa_plan(names: *i64, elfs: *i64, ports: *i64) -> i64
called by 2: mainmain calls 2: svc_listsvc_get
34func main(argc: i64, argv: *i64) -> i64