From d47eeeb97486dbff5658fad3d6308af970f21511 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 21:46:19 +0100 Subject: [PATCH] Serialize Starfire Muninn restart authority --- scripts/restart-starfire-muninn.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/restart-starfire-muninn.ps1 b/scripts/restart-starfire-muninn.ps1 index e6b4eb2..aae72e1 100644 --- a/scripts/restart-starfire-muninn.ps1 +++ b/scripts/restart-starfire-muninn.ps1 @@ -17,6 +17,11 @@ param( $ErrorActionPreference = "Stop" +$restartMutex = [System.Threading.Mutex]::new($false, "Global\GameCult-Starfire-Muninn-Restart") +if (-not $restartMutex.WaitOne([TimeSpan]::FromMinutes(2))) { + throw "Timed out waiting for the Starfire Muninn restart actuator mutex." +} + if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daemon") { throw "restart-starfire-muninn.ps1 is an Idunn actuator body. Redeploy by poking Idunn; direct service restart is not an owned path." }