Stop a Runaway Process

LinuxBeginner
Practice Now

Introduction

A test process named labex-runaway was left running after an experiment. Its PID was recorded so an operator can target it without affecting unrelated processes.

The preceding guided lab practiced reading a PID file, inspecting that PID, sending SIGTERM, and confirming that the process stopped.

Stop the Recorded Process

Current Situation

/home/labex/project/system-recovery/runaway.pid contains the PID of one running labex-runaway process owned by labex.

Scope

  • Use the PID in runaway.pid.
  • Stop that process with the normal termination signal.
  • Do not signal any other process.

Your Goal

Leave the recorded labex-runaway process stopped.

Acceptance Criteria

  • The PID recorded in runaway.pid is no longer running.
  • No unrelated process is changed.

Hints

What safe sequence did the guided lab use?

Read the PID, inspect that exact PID with ps, pass it to kill, wait briefly, and inspect the same PID again.

Summary

You safely stopped one known process by inspecting and signaling its recorded PID.

✨ Check Solution and Practice