stop
Stop the running Starthub server.
Usageâ
starthub stop
Descriptionâ
The stop command gracefully stops all running Starthub server processes. It finds all starthub-server processes and terminates them.
Behaviorâ
- The command searches for all running
starthub-serverprocesses - Processes are terminated gracefully using the TERM signal (Unix) or taskkill (Windows)
- The command reports how many processes were stopped
Example Outputâ
When server processes are found and stopped:
đ Stopping StartHub server...
đ Found starthub-server process: PID 12345
â
Killed process 12345
â
Stopped 1 server process(es)
When no server processes are running:
đ Stopping StartHub server...
âšī¸ No running StartHub server processes found
Platform-Specific Behaviorâ
Unix/Linux/macOSâ
- Uses
psto find processes - Sends
TERMsignal to gracefully stop processes
Windowsâ
- Uses
tasklistto find processes - Uses
taskkillwith/Fflag to force stop processes
Notesâ
- The command will stop all running server processes
- Any actions currently executing may be interrupted
- The server can be restarted using
starthub start - Use
starthub statusto verify the server has stopped
Related Commandsâ
starthub start- Start the serverstarthub status- Check server statusstarthub logs- View server logs