From 4691064368180eadccb57ebc20357bed2bfccab1 Mon Sep 17 00:00:00 2001 From: Adam Anderson Date: Thu, 29 Jan 2026 13:48:05 -0800 Subject: [PATCH] fix(daemon): resolve TS and lint errors in systemd.ts --- src/daemon/systemd.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/daemon/systemd.ts b/src/daemon/systemd.ts index 5ca03fef1..fb6e5f7f4 100644 --- a/src/daemon/systemd.ts +++ b/src/daemon/systemd.ts @@ -5,7 +5,6 @@ import { promisify } from "node:util"; import { colorize, isRich, theme } from "../terminal/theme.js"; import { formatGatewayServiceDescription, - LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES, resolveGatewaySystemdServiceName, } from "./constants.js"; import { parseKeyValueOutput } from "./runtime-parse.js"; @@ -62,6 +61,21 @@ export function resolveSystemdUserUnitPath(env: Record, +): Promise { + // TODO: Implement search for legacy unit names + return Promise.resolve([]); +} + +export function uninstallLegacySystemdUnits( + _env: Record, + _units: string[], +): Promise { + // TODO: Implement removal of legacy units + return Promise.resolve(); +} + export { enableSystemdUserLinger, readSystemdUserLingerStatus }; export type { SystemdUserLingerStatus }; @@ -379,8 +393,8 @@ export async function readSystemdServiceRuntime( state: parsed.activeState, subState: parsed.subState, pid: parsed.mainPid, - exitStatus: parsed.execMainStatus, - exitCode: parsed.execMainCode, + lastExitStatus: parsed.execMainStatus, + lastRunResult: parsed.execMainCode, }; } @@ -405,8 +419,8 @@ export async function readSystemdServiceRuntime( state: parsed.activeState, subState: parsed.subState, pid: parsed.mainPid, - exitStatus: parsed.execMainStatus, - exitCode: parsed.execMainCode, + lastExitStatus: parsed.execMainStatus, + lastRunResult: parsed.execMainCode, }; }