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:
@@ -6,7 +6,7 @@ import fs from 'fs';
|
||||
import os from 'os';
|
||||
|
||||
export type Platform = 'macos' | 'linux' | 'unknown';
|
||||
export type ServiceManager = 'launchd' | 'systemd' | 'none';
|
||||
export type ServiceManager = 'systemd' | 'none';
|
||||
export type LinuxReadonlySandboxAppArmorSetupResult =
|
||||
| 'not-linux'
|
||||
| 'not-needed'
|
||||
@@ -56,12 +56,7 @@ export function hasSystemd(): boolean {
|
||||
}
|
||||
|
||||
export function getServiceManager(): ServiceManager {
|
||||
const platform = getPlatform();
|
||||
if (platform === 'macos') return 'launchd';
|
||||
if (platform === 'linux') {
|
||||
if (hasSystemd()) return 'systemd';
|
||||
return 'none';
|
||||
}
|
||||
if (getPlatform() === 'linux' && hasSystemd()) return 'systemd';
|
||||
return 'none';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user