#!/bin/bash
if ! curl -s -o /dev/null -w '' --connect-timeout 3 http://localhost:8800/; then
  cd /home/clawd/workspace
  npx pm2 resurrect 2>/dev/null || npx pm2 start scripts/serve-board.js --name phat-board
  npx pm2 save
fi
