(name = 'remote-control')
| 54 | * Remove the daemon state file. |
| 55 | */ |
| 56 | export function removeDaemonState(name = 'remote-control'): void { |
| 57 | const filePath = getDaemonStateFilePath(name) |
| 58 | try { |
| 59 | unlinkSync(filePath) |
| 60 | } catch { |
| 61 | // File may not exist — that's fine |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Check if a process with the given PID is alive. |
no test coverage detected