code wiki / (root) / nx_servicectl.nx

nx_servicectl.nx

buildroot/runtime/nx_servicectl.nx

1192 B23 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_servicectl.nx -- generic sovereign service restart: kill ANY daemon by full /proc cmdline, then respawn it DETACHED -- not just the NAS-known services nx_hostctl restarts. Composes the canonical nx_proc_ctl (kill) + nx_daemon (detached spawn). Usage: nx_servicectl <cmdline-name> <elf-path>. No pkill, no harness backgrounding. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_proc_ctl.nx nx_daemon.nx nx_gate.nx nx_servicectl.nx

imports: nx_proc_ctl.nxnx_daemon.nxnx_gate.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write nx_pctl_kill_by_cmdline proc_kill_by_name pc_slen sys_openat_rd sys_mmap sys_getdents64 dirent_reclen dirent_name pc_read_cmdline sys_openat_rd ↻ sys_read sys_close pc_contains nx_kill pc_atoi sys_close ↻ sys_munmap daemon_argv0 daemon_spawn sys_fork nx_setsid sys_openat_rd ↻ sys_openat_wr sys_dup3 sys_execve sys_exit gn sys_write ↻ sys_mmap ↻

structs

none

consts

none

functions

9func main(argc: i64, argv: *i64) -> i64