#!/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: v202606281559 (commit fea59c7)"
echo "Starting $BIN, logging to $LOG"
"$BIN" 2>&1 | tee -a "$LOG"
