Require fresh Move state for Nightwing Muninn health

This commit is contained in:
Meta Vens 2026-06-14 14:07:01 +01:00
commit b1f964aee3
3 changed files with 79 additions and 11 deletions

View file

@ -2,7 +2,9 @@ param(
[string] $SshTarget = "nightwing",
[string] $MuninnExe = "/home/metacrat/.local/bin/muninn",
[string] $StorePath = "/home/metacrat/.local/state/gamecult/muninn/muninn.telemetry.cc",
[string] $PidPath = "/home/metacrat/.local/state/gamecult/muninn/muninn.pid"
[string] $PidPath = "/home/metacrat/.local/state/gamecult/muninn/muninn.pid",
[string] $MoveState = "move-usb=/dev/input/by-id/usb-Sony_Computer_Entertainment_Motion_Controller-joystick",
[int] $IntervalSeconds = 15
)
$ErrorActionPreference = "Stop"
@ -21,7 +23,11 @@ else
echo 'Muninn serve process is not running on Nightwing' >&2
exit 1
fi
'$MuninnExe' --health --store '$StorePath'
'$MuninnExe' --health \
--store '$StorePath' \
--host nightwing \
--move-state '$MoveState' \
--interval-seconds '$IntervalSeconds'
"@
ssh.exe -o BatchMode=yes -o ConnectTimeout=5 $SshTarget $remoteScript

View file

@ -4,6 +4,7 @@ param(
[string] $StorePath = "/home/metacrat/.local/state/gamecult/muninn/muninn.telemetry.cc",
[string] $LogRoot = "/home/metacrat/.local/state/gamecult/muninn",
[string] $MoveState = "move-usb=/dev/input/by-id/usb-Sony_Computer_Entertainment_Motion_Controller-joystick",
[string] $MoveEvidenceStream = "muninn:nightwing:move-evidence",
[int] $IntervalSeconds = 15
)
@ -28,6 +29,7 @@ nohup '$MuninnExe' serve \
--log-root '$LogRoot' \
--host nightwing \
--move-state '$MoveState' \
--move-evidence-stream '$MoveEvidenceStream' \
--interval-seconds '$IntervalSeconds' \
> '$LogRoot/muninn-serve.out.log' \
2> '$LogRoot/muninn-serve.err.log' \