Expand Odin all-seer service surface

This commit is contained in:
Meta Vens 2026-05-31 16:36:09 +01:00
commit 5dac8d3f18
4 changed files with 103 additions and 18 deletions

View file

@ -10,12 +10,12 @@ if (-not (Test-Path $pidPath)) {
exit 0
}
$pid = (Get-Content -Raw $pidPath).Trim()
if ($pid -match "^\d+$") {
$process = Get-Process -Id ([int] $pid) -ErrorAction SilentlyContinue
$odinPid = (Get-Content -Raw $pidPath).Trim()
if ($odinPid -match "^\d+$") {
$process = Get-Process -Id ([int] $odinPid) -ErrorAction SilentlyContinue
if ($process) {
Stop-Process -Id $process.Id
Write-Host "Stopped Odin PID $pid."
Write-Host "Stopped Odin PID $odinPid."
}
}