Documentation
¶
Overview ¶
Command nodeinit is the only helper in an AT-005 node image. The image is FROM scratch: no shell, no sleep, no curl. `serve` keeps the container up until SIGTERM; the others are the file and network operations the harness needs inside a node (each acts on exactly what it is given, nothing is matched by pattern).
nodeinit serve
nodeinit mkdir DIR make DIR (and parents), mode 0700
nodeinit chmod OCTAL PATH
nodeinit rm PATH remove one file or one empty directory
nodeinit stat PATH exit 0 if it exists
nodeinit dial HOST:PORT exit 0 if a TCP connection is accepted
nodeinit get URL print the body of an HTTP GET
nodeinit run --pidfile PATH -- CMD ARGS...
run CMD as a child (same env and stdio), write the child's pid to PATH (0600),
forward SIGTERM and SIGINT to it, exit with its status, remove PATH
nodeinit forge --url tls://ADDR:PORT --ca FILE --creds FILE --seconds N
as a second owner (the given creds): answer each discovery request of owner alice
with a forged and a replay-shaped payload, count the servers' refusals, print
{"seen_requests":N,"violations":M} (counts only)
nodeinit stop --pidfile PATH [--grace 5s]
SIGTERM the pid in PATH, wait up to the grace, then SIGKILL that pid only; exit 0
once it is gone (also when PATH is absent)