[TOWER-P1] Tunnel watchdog - auto-restart on VPS disconnect #454

Open
opened 2026-04-06 13:41:18 +00:00 by Timmy · 0 comments
Owner

Parent: #443

Problem

The reverse tunnel runs as a bare SSH background process. If Mac sleeps, VPS reboots, or network drops, the tunnel dies.

Fix

  1. Create launchd service (com.timmy.tower-tunnel.plist)
  2. Health check every 30s: tests nc -z localhost 4000
  3. If port closed, restart SSH tunnel
  4. Log to /tmp/tower-tunnel.log

Acceptance

  • Tunnel runs as launchd service
  • Restarts within 30s of any disconnect
  • Health check detects within 30s
  • No manual intervention after Mac reboot or sleep
Parent: #443 ## Problem The reverse tunnel runs as a bare SSH background process. If Mac sleeps, VPS reboots, or network drops, the tunnel dies. ## Fix 1. Create launchd service (com.timmy.tower-tunnel.plist) 2. Health check every 30s: tests nc -z localhost 4000 3. If port closed, restart SSH tunnel 4. Log to /tmp/tower-tunnel.log ## Acceptance - [ ] Tunnel runs as launchd service - [ ] Restarts within 30s of any disconnect - [ ] Health check detects within 30s - [ ] No manual intervention after Mac reboot or sleep
allegro was assigned by Timmy 2026-04-06 13:41:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#454