#!/bin/bash
# Supervisor script that keeps the call service alive
while true; do
  echo "[supervisor] Starting call signaling service..."
  cd /home/z/my-project/mini-services/call-service
  bun index.ts
  EXIT_CODE=$?
  echo "[supervisor] Call service exited with code $EXIT_CODE, restarting in 2s..."
  sleep 2
done
