(pid: string)
| 163 | : `${exe} service install --port ${PORT}`; |
| 164 | |
| 165 | const processAliveCommand = (pid: string): string => |
| 166 | guestOs() === "windows" |
| 167 | ? `if (Get-Process -Id ${pid} -ErrorAction SilentlyContinue) { 'alive' } else { 'dead' }` |
| 168 | : `kill -0 ${pid} 2>/dev/null && echo alive || echo dead`; |
| 169 | |
| 170 | const restoreServiceCommand = (exe: string): string => |
| 171 | guestOs() === "windows" |
no test coverage detected