#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p logs
: "${GOTRACEBACK:=crash}"
BIN="./XXTLanControl-backend-linux-arm64"
LOG="logs/backend-$(date +%F).log"
echo "Version: v202605100945 (commit b5f7834)"
echo "Starting $BIN, logging to $LOG"
"$BIN" 2>&1 | tee -a "$LOG"
