LAB-PROC-07 - Jobs, Disconnects, and Service Choice

Practice reasoning about whether work should stay in the shell, move to a persistent session, or be treated as a supervised service.

PS Process Management

Jobs, Disconnects, and Service Choice

Practice reasoning about whether work should stay in the shell, move to a persistent session, or be treated as a supervised service.

30 min INTERMEDIATE BOTH
What success looks like
  • Practice reasoning about whether work should stay in the shell, move to a persistent session, or be treated as a supervised service.
  • Repeat the workflow without copy-paste or step-by-step prompting.
Safety notes
  • Keep the lab conceptual or use only harmless local commands.

Part A: The Field Guide

This lab is about choosing the right operating model for work.

The hard part is usually not starting the command. The hard part is deciding how the OS should keep that work alive.

Decision Goal

Choose the lightest model that is still safe. Do not turn every command into a service, and do not leave important work hanging off one shell session by accident.


Part B: The Drill Deck

G
Guided Step by step - type exactly this and compare the result
>

Exercise G1: Classify the workload

For each case, choose one best fit:

  1. a quick command you are watching live
  2. an overnight script you may need to reconnect to
  3. a long-running app dependency that should restart automatically

Use these answer types only:

  • shell foreground or background
  • persistent session
  • supervised service

Exercise G2: Reason about disconnects

Explain what may happen when:

  1. the terminal closes
  2. the remote SSH connection drops
  3. the machine reboots
S
Solo Task described, hints available - figure it out
>

Exercise S1: Service or session?

For each example, explain your choice:

  1. long package build in a remote shell
  2. web server backing a local app
  3. one-time cleanup script
  4. recurring backup job
M
Mission Real scenario - no hints, combine multiple skills
>

Mission M1: Build your rule of thumb

Write a three-line personal rule for:

  1. when job control is enough
  2. when persistence matters more than convenience
  3. when the operating system should supervise the workload

What to do next

Best next step Learning

Return to the related lesson if you want the concept explained more deeply.

Open now