Resolve Odin runtime paths from the live repo
This commit is contained in:
parent
d34cb7e914
commit
aff1034fa8
5 changed files with 13 additions and 6 deletions
|
|
@ -1,10 +1,12 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = "",
|
||||
[int] $MaxSilenceSeconds = 120,
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($StateDir)) { $StateDir = Join-Path $repoRoot "scratch\odin" }
|
||||
|
||||
$pidPath = Join-Path $StateDir "odin.pid"
|
||||
$outLog = Join-Path $StateDir "odin.out.log"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = "",
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871",
|
||||
[string] $IdunnRudpHealth = $(if ($env:ODIN_IDUNN_RUDP_HEALTH) { $env:ODIN_IDUNN_RUDP_HEALTH } else { $env:IDUNN_RUDP_HEALTH }),
|
||||
[string] $IdunnDaemon = "odin",
|
||||
|
|
@ -13,6 +13,7 @@ if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daem
|
|||
}
|
||||
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($StateDir)) { $StateDir = Join-Path $repoRoot "scratch\odin" }
|
||||
$stopScript = Join-Path $PSScriptRoot "stop-odin.ps1"
|
||||
$startScript = Join-Path $PSScriptRoot "start-odin.ps1"
|
||||
$powerShellExe = Join-Path $env:WINDIR "System32\WindowsPowerShell\v1.0\powershell.exe"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
param(
|
||||
[int] $StaleAfterSeconds = 120,
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\idunn"
|
||||
[string] $StateDir = ""
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($StateDir)) { $StateDir = Join-Path $repoRoot "scratch\idunn" }
|
||||
$idunnExe = Join-Path $repoRoot "target\debug\idunn.exe"
|
||||
$operatorAlarmCommand = Join-Path $repoRoot "scripts\notify-idunn-operator-alarm.cmd"
|
||||
$pidPath = Join-Path $StateDir "idunn.pid"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = "",
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871",
|
||||
[string] $IdunnRudpHealth = $(if ($env:ODIN_IDUNN_RUDP_HEALTH) { $env:ODIN_IDUNN_RUDP_HEALTH } else { $env:IDUNN_RUDP_HEALTH }),
|
||||
[string] $IdunnDaemon = "odin",
|
||||
|
|
@ -10,6 +10,7 @@ param(
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($StateDir)) { $StateDir = Join-Path $repoRoot "scratch\odin" }
|
||||
$scriptPath = Join-Path $repoRoot "src\odin-coordinator.cjs"
|
||||
$pidPath = Join-Path $StateDir "odin.pid"
|
||||
$outLog = Join-Path $StateDir "odin.out.log"
|
||||
|
|
@ -39,7 +40,7 @@ if (Test-Path $pidPath) {
|
|||
Remove-Item -LiteralPath $pidPath -Force
|
||||
}
|
||||
|
||||
$env:NODE_PATH = "E:\Projects\CultLib\packages"
|
||||
$env:NODE_PATH = Join-Path (Split-Path -Parent $repoRoot) "CultLib\packages"
|
||||
$args = @(
|
||||
$scriptPath,
|
||||
"--stateDir", $StateDir,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin"
|
||||
[string] $StateDir = ""
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($StateDir)) { $StateDir = Join-Path $repoRoot "scratch\odin" }
|
||||
|
||||
$pidPath = Join-Path $StateDir "odin.pid"
|
||||
if (-not (Test-Path $pidPath)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue