misc/openclaw: resolve Node from the dependency prefix - #622
Open
vincentkoc wants to merge 3 commits into
Open
Conversation
Use the account selected by openclaw_user for onboarding, configuration and pairing so rc.d reads the same state. Bump PORTREVISION to ship the corrected install instructions.
Run the gateway as openclaw_user through daemon(8), while keeping the supervising process privileged to remove the PID file from /var/run. Let daemon set the child HOME. Native FreeBSD testing reproduced the old non-root PID cleanup failure; fixed same-order proof remains pending.
Use LOCALBASE for the Node shebang and rc.d process identity while keeping OpenClaw files under PREFIX. This repairs custom-prefix launch and service status/stop without changing default-prefix output. Native before/after fixture proof is pending.
vincentkoc
marked this pull request as ready for review
September 13, 2026 18:23
This was referenced Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
PREFIXdiffers fromLOCALBASE, the generated OpenClaw entry point looks for Node under the application prefix, and rc.d checks the wrong executable path. This prevents launch or reports a running service as stopped.Use
LOCALBASEfor the dependency Node path in both the shebang and rc.d process identity. OpenClaw’s own files and launcher remain underPREFIX. BumpPORTREVISIONfrom 3 to 4. This two-line runtime repair adds no configuration or supervisor behavior.Stacked on the service account fix in #620, which includes the account instructions in #619. Those changes remain visible until their branches land.
Native FreeBSD before/after proof, attempt 1 at workflow
756089c888bef4a3bac304ddbd939b5501628669, used actual Portsmake do-installandapply-slistwith a small Node fixture:The tested Makefile and rc.d SHA-256 values are
e9d5132ec3fce339c87e840b5c8997141f1615aefbbc28db619bd0bf18491f2banda47b378066b1f23c7e03f876f0e3376aa2696efbe7301079c135af15100ef4ff, matching signed headc501388ab80c762f723f07db9025a0cf94dc8464. This validates generated launcher/service behavior with a fixture; it does not claim a full Gateway or package upgrade test. No permanent CI workflow is added.