openclaw-matrix-multiaccounts/src/daemon
George Zhang bfbeea0f20
daemon: prefer symlinked paths over realpath for stable service configs (#1505)
When installing the LaunchAgent/systemd service, the CLI was using
fs.realpath() to resolve the entry.js path, which converted stable
symlinked paths (e.g. node_modules/clawdbot) into version-specific
paths (e.g. .pnpm/clawdbot@X.Y.Z/...).

This caused the service to break after pnpm updates because the old
versioned path no longer exists, even though the symlink still works.

Now we prefer the original (symlinked) path when it's valid, keeping
service configs stable across package version updates.
2026-01-23 11:52:26 +00:00
..
constants.test.ts refactor: centralize daemon path resolution 2026-01-15 23:19:52 +00:00
constants.ts feat: add exec host routing + node daemon 2026-01-18 07:46:00 +00:00
diagnostics.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
inspect.ts chore: drop Clawdis legacy references 2026-01-15 06:18:44 +00:00
launchd-plist.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
launchd.test.ts fix: stabilize tests and logging 2026-01-18 18:43:31 +00:00
launchd.ts fix: stabilize tests and logging 2026-01-18 18:43:31 +00:00
legacy.ts chore: drop Clawdis legacy references 2026-01-15 06:18:44 +00:00
node-service.ts feat: add exec host routing + node daemon 2026-01-18 07:46:00 +00:00
paths.test.ts refactor: centralize daemon path resolution 2026-01-15 23:19:52 +00:00
paths.ts refactor: centralize daemon path resolution 2026-01-15 23:19:52 +00:00
program-args.test.ts daemon: prefer symlinked paths over realpath for stable service configs (#1505) 2026-01-23 11:52:26 +00:00
program-args.ts daemon: prefer symlinked paths over realpath for stable service configs (#1505) 2026-01-23 11:52:26 +00:00
runtime-parse.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
runtime-paths.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
runtime-paths.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
schtasks.test.ts refactor: centralize daemon path resolution 2026-01-15 23:19:52 +00:00
schtasks.ts feat: add exec host routing + node daemon 2026-01-18 07:46:00 +00:00
service-audit.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
service-audit.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
service-env.test.ts fix(daemon): include HOME in service env (#1214) 2026-01-19 08:39:12 +00:00
service-env.ts fix(daemon): include HOME in service env (#1214) 2026-01-19 08:39:12 +00:00
service-runtime.ts fix: improve gateway diagnostics 2026-01-08 02:29:32 +01:00
service.ts feat: add exec host routing + node daemon 2026-01-18 07:46:00 +00:00
systemd-availability.test.ts fix: harden onboarding for non-systemd environments 2026-01-09 22:17:09 +01:00
systemd-hints.ts feat: fold gateway service commands into gateway 2026-01-21 17:45:26 +00:00
systemd-linger.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
systemd-unit.test.ts chore: run format and fix sandbox browser timeouts 2026-01-16 09:18:58 +00:00
systemd-unit.ts Fix systemd ExecStart parsing whitespace 2026-01-16 05:25:13 +00:00
systemd.test.ts fix: unify daemon service label resolution with env 2026-01-15 22:10:27 +00:00
systemd.ts feat: add exec host routing + node daemon 2026-01-18 07:46:00 +00:00