UNPKG

@tehreet/conduit

Version:

LLM API gateway with intelligent routing, robust process management, and health monitoring

53 lines 1.26 kB
/** * Robust PID file manager with file locking support */ export declare class PidManager { private static lockFile; private static lockTimeout; /** * Acquire an exclusive lock on the PID file */ private static acquireLock; /** * Release the lock on the PID file */ private static releaseLock; /** * Save PID to file with locking */ static savePid(pid: number): boolean; /** * Read PID from file with locking */ static getPid(): number | null; /** * Check if process is running */ static isProcessRunning(pid: number): boolean; /** * Check if service is running */ static isServiceRunning(): boolean; /** * Clean up PID file with locking */ static cleanupPidFile(): boolean; /** * Stop service gracefully */ static stopService(timeout?: number): Promise<boolean>; /** * Get comprehensive service info */ static getServiceInfo(): { running: boolean; pid: number | null; port: number; endpoint: string; pidFile: string; lockFile: string; platform: NodeJS.Platform; node: string; }; } //# sourceMappingURL=pidManager.d.ts.map