How to stop a dev server that is still running on a Mac

Coding Published

All of use cases Try NotchStar in the browser Buy for $4

Open Disk, then Monitor, then Ports, find the server in the list and press Stop. The button changes to Stop? in red. Press it a second time on the same row and NotchStar sends the process a normal quit request. It does not force anything.

Steps

  1. Open the notch, choose Disk, then Monitor, then Ports.
  2. Find the row. Use the filter if the list is long. You can type the port, the project name or part of the command.
  3. Check the project folder and the command line. Make sure it is the server you mean. A database or a tool you use should not be on your stop list.
  4. Press Stop. It turns into Stop? in red.
  5. Press it again. A short message says “Asked” followed by the process name “to quit”. If the request could not be sent, it says it could not stop it.
  6. After a few seconds the row should disappear on the next refresh. If it does not, the program is ignoring the request, as a stuck or busy program might.

What Stop sends

Stop sends SIGTERM, the standard polite request. Many dev servers catch it, close their sockets and exit. It cannot be sent to processes owned by another user, because macOS does not allow it, and NotchStar does not ask for administrator rights. It never sends SIGKILL.

If it does not stop

Go back to the terminal where it was started and press Control + C. If the terminal is gone, find the process in Activity Monitor and use its Force Quit, which is a decision for you. NotchStar will not make it.

Limits

  • Your own processes only.
  • No force option. That is deliberate.
  • Two presses on the same row. If you press Stop on one row and then a different row, the confirmation moves.
  • Unsaved work in the process is lost if the program exits without saving. A dev server usually has none, but check.
  • Restarts. A process manager or a file watcher may start the server again straight away.
  • It does not clean up files such as lock files a server left behind.

Check what is using a port first if you only know the port. If your fan is spinning and you do not know why, see finding the busiest process. The Disk page lists the safety rules for the whole tab.

Quick answers.

Is Stop the same as kill -9?

No. It sends SIGTERM, a normal quit request, which a program can handle and clean up from. It never forces a process.

Why does the button say Stop with a question mark?

The first press asks for confirmation. A second press on the same row sends the request.

Keep reading.

Disk space, duplicates, apps and cleanup
See free space, find big folders, duplicates and app leftovers, compress media and clean caches from your Mac notch. Everything goes to the Trash.
How to find what is using port 3000 on a Mac
Open the NotchStar Disk tab, Monitor, Ports, then filter by 3000 to see the command, project folder and whether it is local or on the network.
How to see which process is using the most CPU or memory on a Mac
The NotchStar Disk tab, Monitor, Usage shows the five busiest processes by CPU and by memory, refreshed every few seconds. No per app history.
CPU, memory, disk, battery and network
Live CPU, memory, disk, battery and network speed gauges in your Mac notch. Sampling only runs while the tab is open, so it stays light.

More in Coding.

How to find what is using port 3000 on a Mac
Open the NotchStar Disk tab, Monitor, Ports, then filter by 3000 to see the command, project folder and whether it is local or on the network.
How to see which process is using the most CPU or memory on a Mac
The NotchStar Disk tab, Monitor, Usage shows the five busiest processes by CPU and by memory, refreshed every few seconds. No per app history.
How to reuse terminal commands from clipboard history on a Mac
Copy several commands while reading docs, then paste them one at a time from the NotchStar Clipboard tab. Plain text, 50 items, cleared on quit.
How to free up disk space on a Mac used for development
Scan caches, logs, Xcode DerivedData and old downloads with the NotchStar Disk tab, choose what to move to the Trash, and learn what each item means.
How to watch CPU and memory while a build runs on a Mac
Keep the NotchStar System tab open while a build or test run goes, then check Disk, Monitor for the heaviest processes. Totals only, no history.
NotchStar app icon

Put your notch to work.

Buy it once for $4, activate it in a minute, and keep it. Not sure yet? Try every tool in the browser on the home page, or install the 7 day trial.