mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix: detect legacy gateway launchd labels
This commit is contained in:
@@ -147,8 +147,20 @@ async function scanLaunchdDir(params: {
|
||||
continue;
|
||||
}
|
||||
const marker = detectMarker(contents);
|
||||
if (!marker) continue;
|
||||
const label = tryExtractPlistLabel(contents) ?? labelFromName;
|
||||
if (!marker) {
|
||||
const legacyLabel = isLegacyLabel(labelFromName) || isLegacyLabel(label);
|
||||
if (!legacyLabel) continue;
|
||||
results.push({
|
||||
platform: "darwin",
|
||||
label,
|
||||
detail: `plist: ${fullPath}`,
|
||||
scope: params.scope,
|
||||
marker: isLegacyLabel(label) ? "clawdbot" : "moltbot",
|
||||
legacy: true,
|
||||
});
|
||||
continue;
|
||||
}
|
||||
if (isIgnoredLaunchdLabel(label)) continue;
|
||||
if (marker === "openclaw" && isOpenClawGatewayLaunchdService(label, contents)) continue;
|
||||
results.push({
|
||||
|
||||
Reference in New Issue
Block a user