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:
@@ -76,16 +76,12 @@ describe('hasSystemd', () => {
|
||||
describe('getServiceManager', () => {
|
||||
it('returns a valid service manager', () => {
|
||||
const result = getServiceManager();
|
||||
expect(['launchd', 'systemd', 'none']).toContain(result);
|
||||
expect(['systemd', 'none']).toContain(result);
|
||||
});
|
||||
|
||||
it('matches the detected platform', () => {
|
||||
const platform = getPlatform();
|
||||
const result = getServiceManager();
|
||||
if (platform === 'macos') {
|
||||
expect(result).toBe('launchd');
|
||||
} else {
|
||||
expect(['systemd', 'none']).toContain(result);
|
||||
it('only reports systemd on Linux', () => {
|
||||
if (getPlatform() !== 'linux') {
|
||||
expect(getServiceManager()).toBe('none');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user