spawn/sh
A dad130b6d3
fix: add SIGTERM trap and restart loop to DigitalOcean agent scripts (#1863)
Agent processes on DigitalOcean droplets were dying silently on SIGTERM
with no logging or recovery. This adds:

- SIGTERM trap handler that logs signal, timestamp, and dashboard URL
- SIGHUP trap handler for terminal disconnection
- Restart loop with exponential backoff (up to 3 attempts) on SIGTERM
- Child process forwarding so bun receives the signal cleanly

Replaces bare `exec bun run` with a managed foreground process that
the shell can monitor and restart.

Fixes #1859

Agent: ux-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-24 02:51:14 -05:00
..
aws feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
cli feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
daytona feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
digitalocean fix: add SIGTERM trap and restart loop to DigitalOcean agent scripts (#1863) 2026-02-24 02:51:14 -05:00
e2e feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
fly feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
gcp feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
hetzner fix: add error handling to _ensure_bun() in all Hetzner scripts (#1855) 2026-02-24 01:51:44 -05:00
local feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
shared refactor: move all shell scripts to /sh directory (#1843) 2026-02-23 21:14:54 -08:00
sprite feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
test feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00