Where to start First steps track · 15 stages
Linux Labs

systemd

  • Service

    What a service is, how it differs from an ordinary program, and how to manage it.

    systemctl statussystemctl startsystemctl stop

    5 min
  • journalctl — reading the systemd journal

    Reading the systemd journal (journald) — filters by service, time, priority.

    journalctl -ujournalctl -xeujournalctl -p

    5 min
  • systemd

    The init system and service manager (PID 1): units, targets, dependencies, journals.

    systemctl statussystemctl startsystemctl stop

    8 min
  • System boot and GRUB

    How Linux boots: firmware, the GRUB bootloader, the kernel, systemd targets and emergency mode.

    update-grubgrub-installsystemctl get-default

    5 min
  • OOM killer: when memory runs out

    A kernel mechanism: when memory runs out on the machine or in a cgroup with a limit, it kills a process with SIGKILL.

    journalctl -ksystemctl showcat

    12 min
  • Boot targets: default, multi-user, rescue and emergency

    A target is a group of units systemd brings the boot up to; rescue and emergency are the targets for repairs.

    systemctl get-defaultsystemctl set-defaultsystemctl list-units

    11 min
  • systemd-analyze: what slows the boot and what is wrong in a unit

    Breaks the boot down by time and by the chain of unit dependencies, and checks a unit file before the service runs.

    systemd-analyzesystemd-analyze blamesystemd-analyze critical-chain

    11 min
  • systemctl — managing systemd services

    The main interface to systemd. enable turns on autostart, start runs it now — these are different operations.

    systemctl statussystemctl startsystemctl stop

    6 min
  • Cron — the task scheduler

    Running tasks on a schedule: crontab syntax, classic cron and modern systemd timers.

    crontab -ecrontab -lsystemctl list-timers

    6 min
  • ulimit and process limits: open files, processes, core

    Process resource limits — open files, processes, core: ulimit, /proc/<pid>/limits and a service LimitNOFILE.

    ulimit -aulimitulimit -Sn

    8 min
  • Service hardening: User=, ProtectSystem, NoNewPrivileges

    Unit settings that strip a service of root, system writes and new privileges; systemd-analyze security rates them.

    systemd-analyze securitysystemctl showsystemctl edit

    13 min
  • systemd timers — scheduled jobs

    A systemd timer is a .timer unit that starts the service of the same name on a schedule; its output goes to the journal.

    systemctl list-timerssystemctl enablesystemctl start

    11 min
  • timedatectl — time, time zone, and synchronization

    Manages system time and NTP; set-time requires turning off set-ntp first, or the time reverts.

    timedatectltimedatectl set-timezonetimedatectl set-ntp

    5 min
  • hostnamectl — host name and machine info

    View and change the host name and machine info; /etc/hostname and /etc/hosts.

    hostnamectlhostname -fhostname -I

    4 min
Loading…