UNPKG

@stacksjs/launchpad

Version:
33 lines 1.16 kB
import type { LaunchdPlist, ServiceInstance, SystemdService } from '../types'; /** * Generate launchd plist file for macOS */ export declare function generateLaunchdPlist(service: ServiceInstance): LaunchdPlist; /** * Generate systemd service file for Linux */ export declare function generateSystemdService(service: ServiceInstance): SystemdService; /** * Write launchd plist file to disk */ export declare function writeLaunchdPlist(service: ServiceInstance, plist: LaunchdPlist): Promise<string>; /** * Write systemd service file to disk */ export declare function writeSystemdService(service: ServiceInstance, systemdService: SystemdService): Promise<string>; /** * Remove service file from disk */ export declare function removeServiceFile(serviceName: string): Promise<void>; /** * Get the path to the service file for a given service */ export declare function getServiceFilePath(serviceName: string): string | null; /** * Check if platform supports service management */ export declare function isPlatformSupported(): boolean; /** * Get platform-specific service manager name */ export declare function getServiceManagerName(): string;