@runuai/host 0.9.52 → 0.9.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.9.52",
3
+ "version": "0.9.53",
4
4
  "description": "Uai host — runs ephemeral AI tasks in containers on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Uai Tech <team@runuai.com>",
@@ -376,7 +376,18 @@ function inspectSystemdState(execute: StepExecutor): {
376
376
  );
377
377
  }
378
378
  const enabled = enabledResult.status === 0 && enabledState === "enabled";
379
- if (!enabled && !DISABLED_SYSTEMD_STATES.has(enabledState)) {
379
+ // A unit that was never installed answers differently across systemd
380
+ // versions: newer ones print "not-found", older ones (Amazon Linux 2023's
381
+ // systemd, live 2026-08-20) print NOTHING on stdout and put "Failed to get
382
+ // unit file state … No such file or directory" on stderr. Both mean the
383
+ // same thing on a first install: not enabled.
384
+ const neverInstalled =
385
+ enabledResult.status !== 0 &&
386
+ enabledState === "" &&
387
+ /no such file or directory|failed to get unit file state/i.test(
388
+ enabledResult.stderr,
389
+ );
390
+ if (!enabled && !neverInstalled && !DISABLED_SYSTEMD_STATES.has(enabledState)) {
380
391
  throw stepFailure(
381
392
  "systemctl",
382
393
  enabledArgs,