code wiki / _hdl_build / nx_mp_up.nx
nx_mp_up.nx
buildroot/runtime/_hdl_build/nx_mp_up.nx
about
nx_mp_up.nx -- SOVEREIGN bring-up for the multiplayer daemon (the build->launch->verify->publish loop,
the operator's "no guessing if it's live"). Pure NishiLang orchestration: builds nx_mp_serve via the WOMB
in --build-only mode, fork+setsid+execve's it DETACHED (sovereign nohup, survives this command's exit),
then does a SOVEREIGN HTTP liveness check (sys_socket/connect/write/read -- NO curl, NO node) and prints
the live URL. Modes: up (default) / down / status. Build+run: ./_offc/nx_sov_build_run.elf nx_mp_up
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_connect.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const K_MAGIC_1024: i64 = 1024 |
| 11 | const K_MAGIC_7702: i64 = 7702 |
functions
| 13 | func mu_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func mu_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 19 | func mu_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 25 | func mu_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 26 | func mu_write_pid(path: *u8, pid: i64) -> i64 |
| 37 | func mu_read_pid(path: *u8) -> i64 |
| 46 | func mu_build(womb: *u8, name: *u8, envp: *i64) -> i64 |
| 58 | func mu_check(port: i64) -> i64 |
| 79 | func main(argc: i64, argv: *i64) -> i64 |