openclaw/src/daemon
青雲 dc8423f2c0
fix: back up existing systemd unit before overwriting on update (#24350) (#24937)
When `openclaw update` regenerates the systemd service file, any user
customizations to ExecStart (e.g. proxychains4 wrapper) are silently
lost. Now the existing unit file is copied to `.bak` before writing
the new one, so users can restore their customizations.

The backup path is printed in the install output so users are aware.

Co-authored-by: echoVic <AkiraVic@outlook.com>
2026-02-24 03:22:55 +00:00
..
arg-split.ts refactor(daemon): share quoted arg splitter 2026-02-15 12:49:30 +00:00
cmd-argv.test.ts refactor(daemon): extract windows cmd argv helpers 2026-02-19 16:22:28 +01:00
cmd-argv.ts refactor(daemon): extract windows cmd argv helpers 2026-02-19 16:22:28 +01:00
cmd-set.ts refactor(daemon): extract windows cmd argv helpers 2026-02-19 16:22:28 +01:00
constants.test.ts doctor: clean up legacy Linux gateway services (#21188) 2026-02-22 19:18:59 -05:00
constants.ts doctor: clean up legacy Linux gateway services (#21188) 2026-02-22 19:18:59 -05:00
diagnostics.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
exec-file.ts refactor: dedupe daemon exec wrappers 2026-02-15 03:53:53 +00:00
inspect.test.ts refactor(daemon): share runtime and service probe helpers 2026-02-22 21:19:09 +00:00
inspect.ts refactor(daemon): share runtime and service probe helpers 2026-02-22 21:19:09 +00:00
launchd-plist.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
launchd.test.ts test(daemon): dedupe service path cases and bootstrap failures 2026-02-19 10:17:48 +00:00
launchd.ts refactor(daemon): share service arg types across backends 2026-02-19 10:04:19 +00:00
node-service.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
output.ts refactor(daemon): dedupe install output line writing 2026-02-18 23:58:05 +00:00
paths.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
program-args.test.ts revert: Switch back to `tsc` for compiling. 2026-01-31 18:31:49 +09:00
program-args.ts refactor(daemon): share runtime and service probe helpers 2026-02-22 21:19:09 +00:00
runtime-binary.ts refactor(daemon): share runtime and service probe helpers 2026-02-22 21:19:09 +00:00
runtime-format.ts refactor(agent): dedupe harness and command workflows 2026-02-16 14:59:30 +00:00
runtime-parse.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
runtime-paths.test.ts refactor(core): dedupe gateway runtime and config tests 2026-02-22 07:44:57 +00:00
runtime-paths.ts fix(daemon): guard preferred node selection 2026-02-17 10:01:54 -05:00
schtasks-exec.ts refactor: dedupe daemon exec wrappers 2026-02-15 03:53:53 +00:00
schtasks.install.test.ts test(daemon): dedupe schtasks install fixture and cover empty env omission 2026-02-21 21:40:39 +00:00
schtasks.test.ts refactor(daemon): extract schtasks cmd-set codec helpers 2026-02-19 16:07:15 +01:00
schtasks.ts refactor(daemon): extract windows cmd argv helpers 2026-02-19 16:22:28 +01:00
service-audit.test.ts fix(ci): restore main lint/typecheck after direct merges 2026-02-16 23:26:11 +00:00
service-audit.ts refactor(daemon): share runtime and service probe helpers 2026-02-22 21:19:09 +00:00
service-env.test.ts Fix LaunchAgent missing TMPDIR causing SQLITE_CANTOPEN on macOS (#20512) 2026-02-18 21:42:35 -05:00
service-env.ts refactor: dedupe core config and runtime helpers 2026-02-22 17:11:54 +00:00
service-runtime.ts fix: improve gateway diagnostics 2026-01-08 02:29:32 +01:00
service-types.ts refactor(daemon): share service arg types across backends 2026-02-19 10:04:19 +00:00
service.ts refactor(daemon): simplify gateway service backend delegates 2026-02-19 10:04:19 +00:00
systemd-hints.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
systemd-linger.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
systemd-unit.test.ts Daemon: harden systemd unit env rendering 2026-02-20 12:51:14 -06:00
systemd-unit.ts Daemon: harden systemd unit env rendering 2026-02-20 12:51:14 -06:00
systemd.test.ts test(daemon): use lightweight clears in systemd mocks 2026-02-22 08:01:16 +00:00
systemd.ts fix: back up existing systemd unit before overwriting on update (#24350) (#24937) 2026-02-24 03:22:55 +00:00