refactor: drop macOS launchd and nohup service install paths
The service only runs under Linux systemd. Remove setupLaunchd, setupNohupFallback, buildLaunchdPlist, the launchd/nohup service checks in setup/verify-services.ts, ServiceDef.launchdLabel, launchd/ and the unused repo-tokens/ GitHub action. Without systemd, `setup --step service` now fails with systemd_unavailable instead of writing a nohup wrapper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
getNodePath,
|
||||
} from './platform.js';
|
||||
import { getServiceDefs } from './service-defs.js';
|
||||
import { setupLaunchd, setupLinux } from './service-installers.js';
|
||||
import { setupLinux } from './service-installers.js';
|
||||
import { emitStatus } from './status.js';
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@@ -73,11 +73,7 @@ export async function run(_args: string[]): Promise<void> {
|
||||
|
||||
const serviceDefs = getServiceDefs(projectRoot);
|
||||
|
||||
if (platform === 'macos') {
|
||||
for (const def of serviceDefs) {
|
||||
setupLaunchd(def, projectRoot, nodePath, homeDir);
|
||||
}
|
||||
} else if (platform === 'linux') {
|
||||
if (platform === 'linux') {
|
||||
setupLinux(serviceDefs, projectRoot, nodePath, homeDir);
|
||||
} else {
|
||||
emitStatus('SETUP_SERVICE', {
|
||||
|
||||
Reference in New Issue
Block a user