9 lines
343 B
PowerShell
9 lines
343 B
PowerShell
. (Join-Path $PSScriptRoot 'common.ps1')
|
|
$ui = Get-LocalUiProcess
|
|
if ($ui) {
|
|
Stop-Process -Id $ui.ProcessId
|
|
Write-Output "Stopped local UI PID $($ui.ProcessId)."
|
|
} else { Write-Output 'The local UI is not running.' }
|
|
$pidFile = Join-Path $runtimePath 'ui.pid'
|
|
if (Test-Path -LiteralPath $pidFile) { Remove-Item -LiteralPath $pidFile }
|