2.11.10. Force termination of processes

Hanging or long running processes can be forced to end in several ways.

  1. Open the section «Linux configuration».
  2. In the block «Hanging processes» click «Terminate all processes»:
  1. Connect to the hosting account via SSH.
  2. Run the htop utility:
    htop
  3. 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.
  4. Click F9, select 15 SIGTERM and press Enter:
  1. Connect to the hosting account via SSH.
  2. 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 results ps aux (number from column PID).

    • 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.

Content