A Port Number Is Not an Identity
Описание и применение
Приложение Dev Server Activity помогает macOS‑пользователям быстро определить, какие локальные серверы запущены, и безопасно завершить их работу, избегая случайного убийства процессов.
Задача
Developers often have multiple local development servers running simultaneously and cannot easily identify which project owns which listening port, leading to uncertainty about whether to stop a process.
Результат
The app reduces friction in managing local servers, prevents accidental termination of unrelated processes, and encourages safe shutdown practices.
Рабочий процесс
- Scan system for listening sockets owned by current user
- Group sockets by process and identify likely dev server types (Node.js, Vite, Next.js, Python, Ruby, PHP, Bun, Deno)
- Display each process with project folder, command line, PID, and listening ports
- When user selects stop or force stop, re‑read current command line and listening sockets
- Validate that the process still matches the original scan and owns expected ports
- If validation passes, send SIGTERM (stop) or SIGKILL (force stop); otherwise refresh list and do nothing
Доказательства
The app looks for likely local development servers owned by the current user, groups listening sockets by process, and shows the process context beside the stop controls.
Immediately before sending either SIGTERM or SIGKILL, Dev Server Activity checks the target again…
- Дата записи: 2026-09-09T02:00:35.157Z