← back to Exo Keepalive

run-exo.sh

13 lines

#!/usr/bin/env bash
# exo cluster keepalive runner — launched by com.steve.exo-keepalive (KeepAlive=true).
# Starts the exo master+worker + OpenAI-compatible API at http://localhost:52415.
# Steve's standing rule: the cluster is ALWAYS up. launchd respawns this if it exits.
set -uo pipefail
export HOME=/Users/macstudio3
export PATH="/Users/macstudio3/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
cd "$HOME/exo" || exit 1
LOG="$HOME/Projects/exo-keepalive/exo.log"
echo "[$(date +%FT%T%z)] === exo start (pid $$) ===" >> "$LOG"
# exec so launchd tracks the real exo process (respawns on crash)
exec /Users/macstudio3/.local/bin/uv run --extra mlx exo >> "$LOG" 2>&1