diff --git a/scripts/health-mimir-eve-dashboard.cmd b/scripts/health-mimir-eve-dashboard.cmd new file mode 100644 index 0000000..c8883f7 --- /dev/null +++ b/scripts/health-mimir-eve-dashboard.cmd @@ -0,0 +1,2 @@ +@echo off +curl.exe -fsS http://127.0.0.1:8795/health >NUL diff --git a/scripts/health-nightwing-eve-browser-reference.cmd b/scripts/health-nightwing-eve-browser-reference.cmd new file mode 100644 index 0000000..cae4181 --- /dev/null +++ b/scripts/health-nightwing-eve-browser-reference.cmd @@ -0,0 +1,2 @@ +@echo off +ssh.exe -o BatchMode=yes -o ConnectTimeout=5 nightwing systemctl is-active --quiet nightwing-eve-browser-reference.service diff --git a/scripts/health-nightwing-eve-dashboard.cmd b/scripts/health-nightwing-eve-dashboard.cmd new file mode 100644 index 0000000..e1e8372 --- /dev/null +++ b/scripts/health-nightwing-eve-dashboard.cmd @@ -0,0 +1,2 @@ +@echo off +ssh.exe -o BatchMode=yes -o ConnectTimeout=5 nightwing systemctl is-active --quiet nightwing-eve-dashboard.service diff --git a/scripts/health-nightwing-gjallar.cmd b/scripts/health-nightwing-gjallar.cmd new file mode 100644 index 0000000..8057021 --- /dev/null +++ b/scripts/health-nightwing-gjallar.cmd @@ -0,0 +1,2 @@ +@echo off +ssh.exe -o BatchMode=yes -o ConnectTimeout=5 nightwing systemctl is-active --quiet gjallar.service diff --git a/scripts/health-odin.cmd b/scripts/health-odin.cmd new file mode 100644 index 0000000..274bc5e --- /dev/null +++ b/scripts/health-odin.cmd @@ -0,0 +1,2 @@ +@echo off +curl.exe -fsS http://127.0.0.1:8797/health >NUL diff --git a/scripts/start-idunn-local.ps1 b/scripts/start-idunn-local.ps1 index 11b5bee..1678001 100644 --- a/scripts/start-idunn-local.ps1 +++ b/scripts/start-idunn-local.ps1 @@ -29,35 +29,35 @@ $watchdogs = @( Id = "odin" Name = "Odin all-seer" Verse = "starfire.local" - Health = "curl.exe -fsS http://127.0.0.1:8797/health >NUL" + Health = "$repoRoot\scripts\health-odin.cmd" Restart = "$repoRoot\scripts\restart-odin.cmd" }, [pscustomobject]@{ Id = "mimir-eve-dashboard" Name = "Mimir Eve dashboard" Verse = "starfire.local" - Health = "curl.exe -fsS http://127.0.0.1:8795/health >NUL" + Health = "$repoRoot\scripts\health-mimir-eve-dashboard.cmd" Restart = $null }, [pscustomobject]@{ Id = "nightwing-gjallar" Name = "Nightwing Gjallar framebuffer compositor" Verse = "nightwing.local" - Health = "ssh -o BatchMode=yes -o ConnectTimeout=5 nightwing `"systemctl is-active --quiet gjallar.service`"" + Health = "$repoRoot\scripts\health-nightwing-gjallar.cmd" Restart = "$repoRoot\scripts\restart-nightwing-gjallar.cmd" }, [pscustomobject]@{ Id = "nightwing-eve-dashboard" Name = "Nightwing Eve dashboard broker" Verse = "nightwing.local" - Health = "ssh -o BatchMode=yes -o ConnectTimeout=5 nightwing `"systemctl is-active --quiet nightwing-eve-dashboard.service`"" + Health = "$repoRoot\scripts\health-nightwing-eve-dashboard.cmd" Restart = "$repoRoot\scripts\restart-nightwing-eve-dashboard.cmd" }, [pscustomobject]@{ Id = "nightwing-eve-browser-reference" Name = "Nightwing Eve browser reference" Verse = "nightwing.local" - Health = "ssh -o BatchMode=yes -o ConnectTimeout=5 nightwing `"systemctl is-active --quiet nightwing-eve-browser-reference.service`"" + Health = "$repoRoot\scripts\health-nightwing-eve-browser-reference.cmd" Restart = "$repoRoot\scripts\restart-nightwing-eve-browser-reference.cmd" } )