2.11.10. Force termination of processes
Hanging or long running processes can be forced to end in several ways.
- Open the section «Linux configuration».
- In the block «Hanging processes» click «Terminate all processes»:
- Connect to the hosting account via SSH.
- Run the htop utility:
htop
- Select the process you want to force quit. Note Keys F3 and F4 you can search and filter processes by pressing F5 — switch the display mode between the list and the tree.
- Click F9, select
15 SIGTERM
and нажмите Enter:
- Connect to the hosting account via SSH.
- Run the required command:
- Viewing the list of running processes:
ps aux
- Completing a separate process:
kill PID
Instead
PID
substitute process id from output resultsps aux
(number from columnPID
). - Terminating all PHP processes:
kill $(pgrep -f php)
- Completion of all processes:
pkill -9 -u $(whoami)
Note After executing this command, the current SSH connection will be automatically terminated.