prx stop
Stop a running background process.
Syntax
prx stop <pid>
Description
Stops a running background process by its Process ID (PID). Use prx ps to find the PID of running processes.
Examples
Stop process by PID
prx stop 12345
Find and stop processes
# First, list running processes
prx ps
# Then stop by PID
prx stop 12345
How It Works
The command:
- Finds the process by PID
- Sends a termination signal (SIGTERM)
- Waits for graceful shutdown
- If needed, sends SIGKILL for force termination
Process Management
Background processes are tracked in ~/.projax/processes.json. When you stop a process:
- The process is terminated
- The entry is removed from the processes file
- Log files remain for reference