diff --git a/crates/idunn-daemon/src/main.rs b/crates/idunn-daemon/src/main.rs index c01422d..97e8486 100644 --- a/crates/idunn-daemon/src/main.rs +++ b/crates/idunn-daemon/src/main.rs @@ -276,6 +276,16 @@ fn swarm_targets(options: &SwarmOptions) -> Result> { enabled: true, interval_seconds: 30, }, + DaemonTarget { + daemon_id: "vili".to_string(), + verse_id: "raven.local".to_string(), + name: "Vili Persona animation daemon".to_string(), + health_command: Some(script("health-vili.cmd")), + deploy_command: None, + restart_command: Some(script("restart-vili.cmd")), + enabled: true, + interval_seconds: 60, + }, DaemonTarget { daemon_id: "idunn-swarm-deployment-coverage".to_string(), verse_id: "starfire.local".to_string(), diff --git a/scripts/health-vili.cmd b/scripts/health-vili.cmd new file mode 100644 index 0000000..e7e1701 --- /dev/null +++ b/scripts/health-vili.cmd @@ -0,0 +1,2 @@ +@echo off +curl.exe -fsS http://10.77.0.4:8824/health >nul diff --git a/scripts/restart-vili.cmd b/scripts/restart-vili.cmd new file mode 100644 index 0000000..39d4d52 --- /dev/null +++ b/scripts/restart-vili.cmd @@ -0,0 +1,2 @@ +@echo off +ssh -o BatchMode=yes raven "cmd /c E:\Projects\Vili\scripts\restart-vili-daemon.cmd" diff --git a/src/odin/config.cjs b/src/odin/config.cjs index 3fa7705..edc379a 100644 --- a/src/odin/config.cjs +++ b/src/odin/config.cjs @@ -20,7 +20,7 @@ function buildConfig(argv) { const stateDir = args.stateDir || path.join(repoRoot, "scratch", "odin"); const cachePath = args.cachePath || path.join(stateDir, "odin.ccmp"); const layoutPath = args.layoutPath || path.join(stateDir, "interface-layout.json"); - const seedDeckUrls = String(args.eveDeckUrl || "ws://127.0.0.1:8795/eve/deck,ws://127.0.0.1:8796/eve/deck,ws://127.0.0.1:8799/eve/deck,ws://127.0.0.1:8802/eve/deck,ws://192.168.1.75:8795/eve/deck") + const seedDeckUrls = String(args.eveDeckUrl || "ws://127.0.0.1:8795/eve/deck,ws://127.0.0.1:8796/eve/deck,ws://127.0.0.1:8799/eve/deck,ws://127.0.0.1:8802/eve/deck,ws://192.168.1.75:8795/eve/deck,ws://10.77.0.4:8824/eve/deck") .split(",") .map((entry) => entry.trim()) .filter(Boolean);