A process runs its own bundle's binary, written ./name (hq ADR 0193) #81

Merged
mesh-admin merged 1 commits from feat/a-process-runs-its-own-binary into main 2026-10-03 19:14:05 +00:00
Contributor

Needed for a runtime (and any daemon) compiled to a binary, hq ADR 0193 / design 38 WP4d: only the host knows where it unpacked a process's bundle, and systemd's ExecStart takes no path relative to WorkingDirectory. A run whose first word is ./name now means that file in the process's own unpacked bundle, written absolute in the unit. Commands found on the path (node src/main.js) are unchanged, so existing units are byte-identical. Test added; suite passes.

Needed for a runtime (and any daemon) compiled to a binary, hq ADR 0193 / design 38 WP4d: only the host knows where it unpacked a process's bundle, and systemd's ExecStart takes no path relative to WorkingDirectory. A `run` whose first word is `./name` now means that file in the process's own unpacked bundle, written absolute in the unit. Commands found on the path (`node src/main.js`) are unchanged, so existing units are byte-identical. Test added; suite passes.
mesh-admin added 1 commit 2026-10-03 19:14:01 +00:00
A bundle compiled to a binary runs itself, but only the host knows where it unpacked it, and the
service manager takes no path relative to the working directory. A command written ./name is that
file in the process's own unpacked bundle, made absolute in the unit.
mesh-admin merged commit 77ae5320ad into main 2026-10-03 19:14:05 +00:00
mesh-admin deleted branch feat/a-process-runs-its-own-binary 2026-10-03 19:14:05 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-host#81