dgt_sys04 – Processes and services

Module Title: dgt_sys04 – Processes and services

Description:

The module “dgt_sys04 – Processes and services” covers the management of processes and services on Linux systems and is intended for IT professionals and system administrators. It explains how processes and services work and which tools are used to manage them, with a particular focus on process control and service handling with SystemD.

In the labs you will not type these commands yourself. You might tell the machine “find out why the API service keeps restarting and stop the runaway worker without losing in-flight jobs”; it will run the diagnosis and propose a plan, and you will decide whether sending SIGKILL instead of SIGTERM is acceptable, or whether the unit file it edited really survives a reboot.

Module Objectives:

By the end of this module, participants will be able to:

  1. Understand Process Management: Know how processes operate within Linux systems and how they are managed.

  2. Read Command-Line Tools: Understand what tools such as ps report about process status, so you can interpret the output the machine returns and ask for the right details.

  3. Process Termination Techniques: Learn the various ways of terminating processes with the kill command, including signals and their effects on running processes, and judge which one the machine should use.

  4. Troubleshooting Processes: Develop the ability to guide the troubleshooting of problematic processes by analyzing their states and behaviors, ensuring system stability and performance.

  5. Service Management with SystemD: Understand how SystemD starts, stops, enables and disables services, and instruct the machine to do so correctly.

  6. Verify systemctl Operations: Be able to read the systemctl commands the machine runs within a SystemD environment, understanding their syntax and options.

  7. Practical Application: Apply what you have learned to real-world scenarios through natural-language labs, describing the goal to the machine and verifying every action it takes.

Module Modules:

  1. Introduction to Process Management
  2. Overview of processes in Linux
  3. Identifying running processes

  4. Using the ps Command

  5. Basic usage and options of ps
  6. Interpreting process information

  7. Terminating Processes with kill

  8. Understanding signals and their effects
  9. Safely stopping processes using kill

  10. Advanced Process Troubleshooting

  11. Identifying unresponsive or problematic processes
  12. Techniques for diagnosing issues

  13. Introduction to SystemD

  14. Overview of SystemD architecture
  15. Comparing traditional init systems with SystemD

  16. Managing Services with systemctl

  17. Starting and stopping services
  18. Enabling and disabling services at boot

  19. Natural-Language Lab: Managing Processes and Services

  20. Process management exercises in which you instruct the machine and check its actions
  21. Real-world service control scenarios with SystemD, driven by your instructions and verified by you

Target Audience:

This module is intended for system administrators, DevOps engineers, IT professionals and anyone involved in Linux systems administration who aims to deepen their understanding of process and service management.

Prerequisites:

Participants should have a basic understanding of how the Linux command line works and be familiar with common system administration tasks. Prior experience with init systems will be beneficial but is not required.

The module provides the skills needed to manage processes and services in Linux and to keep computing environments stable and efficient.
The students can push their exercises to the Academy DevOps & SRE Git project. For this module, create a folder with your username as its name in the following subfolder: https://github.com/Garanti-Del-Talento/gdt_academy