Linux Labs

Users, permissions, and processes / Stage 12 of 13

Signals and process termination

Not running Starting usually ~20 s
Leave the lesson

Step 8 of 9 · lab · 20 minmedium

A process that will not go away

Monitoring keeps sending the same alert, and kill -9 does not help. Find out why and remove the cause without stopping the working program.

Situation

Monitoring sent an alert: a process on the server is in state Z, and it does not go away. A colleague tried kill -9, and the row stayed. Monitoring wrote the process numbers from the alert to /srv/zombie-lab/pids.

Next to it runs a training program, collector, as your user student, watched over by the lab-zombie.service service. The program's description is in /srv/zombie-lab/README.

Task

  1. There is no longer a row in state Z in the process table.
  2. collector is the same process that was started: the same PID and start time, running and not stopped.
  3. The service's supervisor has written the outcome to /srv/zombie-lab/result.txt.
  4. The program files, the lab-zombie.service service, and its limits are unchanged, and collector has no new children.

Constraints

  • Do not stop or restart collector or its service.

The tools you need are already installed. There is no internet on this machine.

Lab · on your own

No commands are given in this lab: type them in the terminal yourself. Goals are checked on the machine after every command.

Goals

0 of 4
  • The row in state Z is gone — not done yet
  • collector is the same process, running and not stopped — not done yet
  • The supervisor wrote the outcome to result.txt — not done yet
  • The program, its limits and the task files are unchanged; no new children exist — not done yet
Ctrl+Enter
Starts the machine node1 · Ubuntu 24.04

The machine is starting

Hints

0 of 3

Lab goals

0 of 4
  • The row in state Z is gone — not done yet
  • collector is the same process, running and not stopped — not done yet
  • The supervisor wrote the outcome to result.txt — not done yet
  • The program, its limits and the task files are unchanged; no new children exist — not done yet
node1 Ubuntu 24.04

Lab goals

0 of 4
  • The row in state Z is gone — not done yet
  • collector is the same process, running and not stopped — not done yet
  • The supervisor wrote the outcome to result.txt — not done yet
  • The program, its limits and the task files are unchanged; no new children exist — not done yet
Loading…