#!/usr/bin/env bash
set -e
PID_FILE="/tmp/bestweb_tunnel.pid"

if [ -f "$PID_FILE" ]; then
  pid=$(cat "$PID_FILE")
  kill "$pid" || true
  rm -f "$PID_FILE"
  echo "BestWeb tunnel stopped (pid $pid)."
else
  echo "No active BestWeb tunnel found."
fi
